コード例 #1
0
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $app = parent::register();
     $config = $app->make('config');
     $app->singleton('fs', Filesystem::class);
     $this->registerStubs();
     $this->registerHelpers();
 }
コード例 #2
0
 /**
  * @inheritDoc
  */
 public function provides()
 {
     $p = parent::provides();
     if ($this->app['config']['blade_extensions.markdown.enabled']) {
         $p = array_merge($p, ['markdown', 'markdown.compiler']);
     }
     return $p;
 }
コード例 #3
0
 /**
  * Register bindings in the container.
  *
  * @return Application
  */
 public function register()
 {
     $app = parent::register();
     $this->registerFilters();
 }