public function extendProject() { Project::extend('getSassdocDocument', function () { /** @var Project $this */ return app()->make('codex.hooks.sassdoc.document', ['project' => $this, 'codex' => $this->getCodex()]); }); }
/** * {@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); }); }