diff --git a/README.md b/README.md index 101dd56..9d01f73 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # RSS -RSS builder for Laravel 4 +RSS builder for Laravel 5 [![Build Status](https://travis-ci.org/thujohn/rss-l4.png?branch=master)](https://travis-ci.org/thujohn/rss-l4) diff --git a/src/Thujohn/Rss/RssServiceProvider.php b/src/Thujohn/Rss/RssServiceProvider.php index 5542141..c4b2350 100644 --- a/src/Thujohn/Rss/RssServiceProvider.php +++ b/src/Thujohn/Rss/RssServiceProvider.php @@ -4,44 +4,44 @@ class RssServiceProvider extends ServiceProvider { - /** - * Indicates if loading of the provider is deferred. - * - * @var bool - */ - protected $defer = false; + /** + * Indicates if loading of the provider is deferred. + * + * @var bool + */ + protected $defer = false; - /** - * Bootstrap the application events. - * - * @return void - */ - public function boot() - { - $this->package('thujohn/rss'); - } + /** + * Bootstrap the application events. + * + * @return void + */ + public function boot() + { + // $this->package('thujohn/rss'); + } - /** - * Register the service provider. - * - * @return void - */ - public function register() - { - $this->app['rss'] = $this->app->share(function($app) - { - return new Rss; - }); - } + /** + * Register the service provider. + * + * @return void + */ + public function register() + { + $this->app->bind('rss', function($app) + { + return new Rss; + }); + } - /** - * Get the services provided by the provider. - * - * @return array - */ - public function provides() - { - return array('rss'); - } + /** + * Get the services provided by the provider. + * + * @return array + */ + public function provides() + { + return array('rss'); + } } \ No newline at end of file