Since: 2.0
Inheritance: extends Windwalker\Core\Application\WebApplication
Beispiel #1
0
 /**
  * initialise
  *
  * @return  void
  */
 protected function init()
 {
     parent::init();
     $this->boot();
     $session = $this->session;
     $session->setBridge(new MockArrayBridge());
 }
Beispiel #2
0
 /**
  * initialise
  *
  * @return  void
  */
 protected function initialise()
 {
     $this->set('mode', 'test');
     parent::initialise();
     $this->set('project.path.entries', __DIR__ . '/entries');
 }
Beispiel #3
0
 /**
  * loadConfiguration
  *
  * @param Registry $config
  *
  * @return  void
  */
 protected function loadConfiguration(Registry $config)
 {
     parent::loadConfiguration($config);
     $config->loadFile(WINDWALKER_ETC . '/dev/config.yml', 'yaml');
 }
Beispiel #4
0
 /**
  * Class constructor.
  *
  * @param   Request        $request       An optional argument to provide dependency injection for the Http request object.
  * @param   Structure      $config        An optional argument to provide dependency injection for the application's
  *                                        config object.
  * @param   WebEnvironment $environment   An optional argument to provide dependency injection for the application's
  *                                        environment object.
  *
  * @since   2.0
  */
 public function __construct(Request $request = null, Structure $config = null, WebEnvironment $environment = null)
 {
     parent::__construct($request, $config, $environment);
     $this->boot();
 }
 /**
  * loadRoutingConfiguration
  *
  * @return  array
  */
 protected function loadRoutingConfiguration()
 {
     $routes = parent::loadRoutingConfiguration();
     return array_merge($routes, Yaml::parse(file_get_contents(WINDWALKER_ETC . '/dev/routing.yml')));
 }