/** * Register the service provider. * * @return void */ public function register() { $app = parent::register(); $app->singleton('fs', Filesystem::class); $this->registerStubs(); $this->registerHelpers(); }
/** * {@inheritdoc} */ public function register() { $app = parent::register(); $this->addRouteProjectNameExclusions(config('docit.hooks.phpdoc.route_prefix')); $this->addDocitHook('factory:ready', FactoryHook::class); $this->addDocitHook('project:documents-menu', ProjectDocumentsMenuHook::class); $this->addDocitHook('project:ready', ProjectHook::class); }
/** * Register the service provider. * * @return void */ public function register() { $app = parent::register(); $this->registerGithubFilesystem(); $this->addRouteProjectNameExclusions('github-sync-webhook'); // Add the hook which merges the docit config. $this->addDocitHook('factory:ready', FactoryHook::class); // And add the hook providing the `github` method for projects to retreive a gitsync instance for that specific project $this->addDocitHook('project:ready', ProjectHook::class); }
/** * Register bindings in the container. * * @return Application */ public function register() { parent::register(); // The factory hook will merge config, adds several default_project_settings $this->addDocitHook('factory:ready', FactoryHook::class); // The project hook will do the magic. It will read the projects configuration and // if filesystems are properly configured, it will replace its `files` instance with the // adapter specified in the project $this->addDocitHook('project:ready', ProjectHook::class); }
/** * Register bindings in the container. * * @return Application */ public function register() { $app = parent::register(); $this->registerLogger($app); $this->registerFilters(); }