This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updating the dependencies * Reconfiguring folders * Updating service provider * Misc fixes * Updating documentation * Removing the minimum stability * Updating the PHP dependencies in the travis-ci configuration
- Loading branch information
Showing
9 changed files
with
65 additions
and
119 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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
language: php | ||
|
||
php: | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
|
||
|
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 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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Awjudd\FeedReader; | ||
|
||
class Facade extends \Illuminate\Support\Facades\Facade | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return 'rss-feed-reader'; | ||
} | ||
} |
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 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,41 @@ | ||
<?php | ||
|
||
namespace Awjudd\FeedReader; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class FeedReaderServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Bootstrap the application events. | ||
*/ | ||
public function boot() | ||
{ | ||
$this->handleConfigs(); | ||
$this->setupProcessor(); | ||
} | ||
|
||
/** | ||
* Register the service provider. | ||
*/ | ||
public function register() | ||
{ | ||
$this->app->singleton('rss-feed-reader', FeedReader::class); | ||
} | ||
|
||
/** | ||
* Register the configuration. | ||
*/ | ||
private function handleConfigs() | ||
{ | ||
$configPath = __DIR__.'/../config/rss-feed-reader.php'; | ||
$this->publishes([$configPath => config_path('rss-feed-reader.php')]); | ||
$this->mergeConfigFrom($configPath, 'rss-feed-reader'); | ||
} | ||
|
||
private function setupProcessor() | ||
{ | ||
$this->app->singleton(FeedReader::class); | ||
} | ||
|
||
} |