Since: 2.0
Inheritance: extends Windwalker\Core\Application\WebApplication
Exemplo n.º 1
0
 /**
  * initialise
  *
  * @return  void
  */
 protected function init()
 {
     parent::init();
     $this->boot();
     $session = $this->session;
     $session->setBridge(new MockArrayBridge());
 }
Exemplo n.º 2
0
 /**
  * initialise
  *
  * @return  void
  */
 protected function initialise()
 {
     $this->set('mode', 'test');
     parent::initialise();
     $this->set('project.path.entries', __DIR__ . '/entries');
 }
Exemplo n.º 3
0
 /**
  * loadConfiguration
  *
  * @param Registry $config
  *
  * @return  void
  */
 protected function loadConfiguration(Registry $config)
 {
     parent::loadConfiguration($config);
     $config->loadFile(WINDWALKER_ETC . '/dev/config.yml', 'yaml');
 }
Exemplo n.º 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();
 }
Exemplo n.º 5
0
 /**
  * loadRoutingConfiguration
  *
  * @return  array
  */
 protected function loadRoutingConfiguration()
 {
     $routes = parent::loadRoutingConfiguration();
     return array_merge($routes, Yaml::parse(file_get_contents(WINDWALKER_ETC . '/dev/routing.yml')));
 }