-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from bzbislawski/master
Upgrade to php7 and psr-4
- Loading branch information
Showing
9 changed files
with
76 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
composer.phar | ||
composer.lock | ||
.DS_Store | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace Alaouy\Youtube; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class YoutubeServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Bootstrap the application events. | ||
* | ||
* @return void | ||
*/ | ||
public function boot() | ||
{ | ||
$this->publishes(array(__DIR__ . '/config/youtube.php' => config_path('youtube.php'))); | ||
} | ||
|
||
/** | ||
* Register the service provider. | ||
* | ||
* @return void | ||
*/ | ||
public function register() | ||
{ | ||
$this->app->bind('youtube', function () { | ||
return new Youtube(config('youtube.key')); | ||
}); | ||
} | ||
|
||
/** | ||
* Get the services provided by the provider. | ||
* | ||
* @return array | ||
*/ | ||
public function provides() | ||
{ | ||
return [Youtube::class]; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
<?php | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Laravel PHP Facade/Wrapper for the Youtube Data API v3 | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here is where you can set your key for Youtube API. In case you do not | ||
| have it, it can be acquired from: https://console.developers.google.com | ||
*/ | ||
|
||
// You can find the keys here : https://console.developers.google.com | ||
|
||
return array( | ||
'KEY' => 'YOUR API KEY' | ||
); | ||
return [ | ||
'key' => 'YOUR_API_KEY' | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters