getApp() protected method

protected getApp ( $boot = true )
Ejemplo n.º 1
0
 protected function getApp()
 {
     $bolt = parent::getApp();
     $bolt['extend.action.options']['basedir'] = $bolt['resources']->getPath('extensions');
     $bolt['extend.action.options']['composerjson'] = $bolt['resources']->getPath('extensions') . '/composer.json';
     return $bolt;
 }
 public function getApp()
 {
     $app = parent::getApp();
     $extension = new Extension($app);
     $app['extensions']->register($extension);
     return $app;
 }
Ejemplo n.º 3
0
 protected function getApp($boot = true)
 {
     $bolt = parent::getApp();
     $bolt['extend.action.options']->set('basedir', $bolt['resources']->getPath('extensions'));
     $bolt['extend.action.options']->set('composerjson', $bolt['resources']->getPath('extensions') . '/composer.json');
     return $bolt;
 }
Ejemplo n.º 4
0
 protected function getApp($boot = true)
 {
     $this->php->expects($this->any())->method('is_dir')->will($this->returnValue(true));
     $this->php->expects($this->any())->method('file_exists')->will($this->returnValue(true));
     $this->php->expects($this->any())->method('is_writable')->will($this->returnValue(true));
     $this->php->expects($this->any())->method('is_readable')->will($this->returnValue(true));
     return parent::getApp();
 }
Ejemplo n.º 5
0
 protected function getApp($boot = true)
 {
     if ($this->app) {
         return $this->app;
     }
     $app = parent::getApp($boot);
     $extension = new Extension($app);
     $app['extensions']->register($extension);
     return $this->app = $app;
 }
 protected function getApp($boot = true)
 {
     if ($this->app) {
         return $this->app;
     }
     $app = parent::getApp($boot);
     $extension = new Extension($app);
     $app['extensions']->register($extension);
     unset($app['extensions.BoltForms']->config['contact']);
     $app['extensions.BoltForms']->config['testing_form'] = $this->formFieldBaseConfig();
     return $this->app = $app;
 }
Ejemplo n.º 7
0
 public function getApp($boot = true)
 {
     $app = parent::getApp($boot);
     $extension = new Extension($app);
     $boltforms = new BoltFormsExtension($app);
     $boltformsSp = new BoltFormsServiceProvider();
     $boltformsSp->register($app);
     $config = $this->getMock('\\Bolt\\Config', array('getWhichEnd'), array($app));
     $config->expects($this->any())->method('getWhichEnd')->will($this->returnValue('frontend'));
     $app['config'] = $config;
     $app['extensions']->register($boltforms);
     $app['extensions']->register($extension);
     $app->boot();
     return $app;
 }
 protected function getApp($boot = true)
 {
     $bolt = parent::getApp($boot);
     return $this->authApp($bolt);
 }
Ejemplo n.º 9
0
 public function getApp()
 {
     $app = parent::getApp();
     $app['asset.file.hash'] = $app->protect(function ($fileName) {
         return md5($fileName);
     });
     return $app;
 }