Skip to content

Dispatcher getActiveMethod breaks method name letter case #2313

Closed
@baryshev

Description

@baryshev

If method name have one word in prefix like indexAction or addAction everything works fine. But if method have a more complex name like addPostAction or showMeSomethingAction $dispatcher->getActiveMethod() returns unexpected results: addpostAction and showmesomethindAction. Method name before Action keyword unexpectedly lowercased.

It makes impossible to use this methods in annotations reader.

        $annotations = $this->annotations->getMethod(
            $dispatcher->getActiveController(),
            $dispatcher->getActiveMethod()
        );

This code not working, because $dispatcher->getActiveMethod() returns wrong method name (partially lowercased).

OS: Mac OS X 10.9.2
PHP version: 5.5.11
Phalcon version: 1.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions