コード例 #1
0
ファイル: AssembleCommand.php プロジェクト: azraai/foundation
 /**
  * Refresh application for Orchestra Platform.
  *
  * @return void
  */
 protected function refreshApplication()
 {
     if (!$this->foundation->installed()) {
         return;
     }
     $this->call('extension:detect', ['--quiet' => true]);
     $extensions = $this->memory->get('extensions.active', []);
     foreach ($extensions as $extension => $config) {
         $options = ['name' => $extension, '--force' => true];
         $this->call('extension:refresh', $options);
         $this->call('extension:update', $options);
     }
     $this->foundation->make('orchestra.extension.provider')->writeFreshManifest();
 }
コード例 #2
0
ファイル: Authorization.php プロジェクト: quetzyg/control
 /**
  * Setup a new processor.
  *
  * @param  \Orchestra\Contracts\Foundation\Foundation  $foundation
  * @param  \Orchestra\Contracts\Authorization\Factory  $acl
  */
 public function __construct(Foundation $foundation, Factory $acl)
 {
     $this->foundation = $foundation;
     $this->memory = $foundation->memory();
     $this->acl = $acl;
     $this->model = $foundation->make('orchestra.role');
 }
コード例 #3
0
ファイル: venue.php プロジェクト: blupl/sponsor
 /**
  * Setup a new processor instance.
  *
  */
 public function __construct(FranchisesPresenter $presenter, Foundation $foundation)
 {
     $this->presenter = $presenter;
     //        $this->validator  = $validator;
     $this->foundation = $foundation;
     $this->model = $foundation->make('Blupl\\Franchises\\Model\\Franchise');
 }
コード例 #4
0
ファイル: Media.php プロジェクト: blupl/printmedia
 /**
  * Setup a new processor instance.
  *
  */
 public function __construct(MediaPresenter $presenter, MediaValidator $validator, Foundation $foundation)
 {
     $this->presenter = $presenter;
     $this->validator = $validator;
     $this->foundation = $foundation;
     $this->model = $foundation->make('Blupl\\PrintMedia\\Model\\MediaOrganization');
 }
コード例 #5
0
ファイル: Approral.php プロジェクト: blupl/printmedia
 /**
  * Setup a new processor instance.
  *
  */
 public function __construct(MediaPresenter $presenter, Foundation $foundation)
 {
     $this->presenter = $presenter;
     $this->foundation = $foundation;
     $this->model = $foundation->make('Blupl\\PrintMedia\\Model\\MediaReporter');
 }