Пример #1
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $app = parent::register();
     $app->singleton('fs', Filesystem::class);
     $this->registerStubs();
     $this->registerHelpers();
 }
Пример #2
0
 /**
  * {@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);
 }
Пример #3
0
 /**
  * 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);
 }
Пример #4
0
 /**
  * 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);
 }
Пример #5
0
 /**
  * Register bindings in the container.
  *
  * @return Application
  */
 public function register()
 {
     $app = parent::register();
     $this->registerLogger($app);
     $this->registerFilters();
 }