You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
663 B

  1. <?php namespace Sensory5\Shortcode\Classes;
  2. use Illuminate\Support\ServiceProvider;
  3. class ShortcodeServiceProvider extends ServiceProvider
  4. {
  5. /**
  6. * Indicates if loading of the provider is deferred.
  7. *
  8. * @var bool
  9. */
  10. protected $defer = false;
  11. /**
  12. * Register the service provider.
  13. */
  14. public function register()
  15. {
  16. $this->app['shortcode'] = $this->app->share(function ($app) {
  17. return new Shortcode();
  18. });
  19. }
  20. /**
  21. * Get the services provided by the provider.
  22. *
  23. * @return array
  24. */
  25. public function provides()
  26. {
  27. return array('shortcode');
  28. }
  29. }