Ouzo\Tests\ControllerTestCase::__construct PHP Метод

__construct() публичный Метод

public __construct ( $name = null, array $data = [], $dataName = '' )
$data array
    public function __construct($name = null, array $data = array(), $dataName = '')
    {
        parent::__construct($name, $data, $dataName);
        $this->injectorConfig = new InjectorConfig();
        $this->frontControllerBindings($this->injectorConfig);
        $injector = new Injector($this->injectorConfig);
        $this->frontController = $injector->getInstance('\\Ouzo\\FrontController');
    }

Usage Example

Пример #1
0
 public function __construct()
 {
     Config::overrideProperty('namespace', 'controller')->with('\\');
     parent::__construct();
 }