From af150891df3b90fda846941d62ea76616f42a6ab Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 8 Apr 2025 02:24:30 +0200 Subject: Options for YT feeds: minimum video duration and extracting links from description --- .../src/YoutubeServiceProviderLaravel4.php | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 lib/php-youtube-api/src/YoutubeServiceProviderLaravel4.php (limited to 'lib/php-youtube-api/src/YoutubeServiceProviderLaravel4.php') diff --git a/lib/php-youtube-api/src/YoutubeServiceProviderLaravel4.php b/lib/php-youtube-api/src/YoutubeServiceProviderLaravel4.php new file mode 100644 index 0000000..cbe33ac --- /dev/null +++ b/lib/php-youtube-api/src/YoutubeServiceProviderLaravel4.php @@ -0,0 +1,50 @@ +package('madcoda/php-youtube-api'); + } + + /** + * Register the service provider. + * + * @return void + */ + public function register() + { + $this->app->bindShared('Madcoda\Youtube\Youtube', function ($app) { + return new Youtube($app['config']->get('php-youtube-api::youtube')); + }); + } + + /** + * Get the services provided by the provider. + * + * @return array + */ + public function provides() + { + return array('Madcoda\Youtube\Youtube'); + } +} -- cgit v1.2.3