Esempio n. 1
0
 protected function registerConfig(Application $app)
 {
     parent::registerConfig($app);
     foreach ($this->getComponentPaths() as $component_paths) {
         foreach ($component_paths as $path) {
             $app->register(new ConfigServiceProvider("{$path}/main.yml"));
         }
     }
 }
Esempio n. 2
0
 public function __construct(Application $app)
 {
     $this->app_name = 'cms';
     parent::__construct($app);
     $app->register(new SessionServiceProvider());
     $app->register(new ValidatorServiceProvider());
     // TODO: Requires additional setup.
     //$app->register(new SecurityServiceProvider());
     $app->register(new SwiftmailerServiceProvider());
     $this->app_view = $this->registerView(new AppView($this), $app);
     $this->exhibit_model = new ExhibitModel($this);
     $this->exhibit_model->is_public = false;
     $app->register($this->exhibit_model);
 }