Ouzo\Uri::getController PHP Method

getController() public method

public getController ( )
    public function getController()
    {
        $rawController = $this->getRawController();
        return $rawController ? Strings::underscoreToCamelCase($rawController) : null;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @test
  */
 public function shouldExtractController()
 {
     //given
     $this->_path(Config::getPrefixSystem() . '/user/add/id/5/name/john');
     //then
     $this->assertEquals('User', $this->uri->getController());
     $this->assertEquals('user', $this->uri->getRawController());
 }