/** * 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(); }
/** * 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'); }
/** * 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'); }
/** * 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'); }
/** * 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'); }