/** * {@inheritdoc} */ public function register() { $app = parent::register(); $this->codexRouteExclusion(config('codex.hooks.sassdoc.route_prefix')); $this->codexHook('factory:ready', FactoryHook::class); $this->codexHook('project:documents-menu', ProjectDocumentsMenuHook::class); $this->extendProject(); $this->extendSassdocDocument(); }
/** * {@inheritdoc} */ public function register() { $app = parent::register(); $this->addRouteProjectNameExclusions('git-hook-webhook'); // Add the hook which merges the codex config. $this->addCodexHook('factory:ready', FactoryHook::class); // And add the hook providing the `gith` method for projects to retreive a gitsync instance for that specific project $this->addCodexHook('project:ready', ProjectHook::class); }
/** * {@inheritdoc} */ public function register() { $app = parent::register(); $this->codexRouteExclusion('git-hook-webhook'); // Add the hook which merges the codex config. $this->codexHook('factory:ready', FactoryHook::class); Project::extend('gitSyncer', function () { /** @var Project $this */ return app('codex.hooks.git')->gitSyncer($this); }); }
/** * Initialize the form request with data from the given request. * * @param \Laradic\Foundation\Http\FormRequest $form * @param \Symfony\Component\HttpFoundation\Request $current * * @return void */ public function boot() { parent::boot(); $this->configureFormRequests(); }
/** * @inheritDoc */ public function provides() { $p = parent::provides(); if ($this->app['config']['blade_extensions.markdown.enabled']) { $p = array_merge($p, ['markdown', 'markdown.compiler']); } return $p; }
/** * Register bindings in the container. * * @return Application */ public function register() { $app = parent::register(); $this->registerLogger($app); $this->registerFilters(); }
/** * {@inheritdoc} */ public function register() { $app = parent::register(); }