-
Notifications
You must be signed in to change notification settings - Fork 168
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 #97 from 0plus1/laravel-5
Added Lumen support and removed unnecessary usage of Facades
- Loading branch information
Showing
5 changed files
with
63 additions
and
7 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
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
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 Conner\Tagging\Providers; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
use Conner\Tagging\Contracts\TaggingUtility; | ||
use Conner\Tagging\Util; | ||
|
||
/** | ||
* Copyright (C) 2014 Robert Conner | ||
*/ | ||
class LumenTaggingServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Bootstrap the application events. | ||
*/ | ||
public function boot() | ||
{ | ||
} | ||
|
||
/** | ||
* Register the service provider. | ||
* | ||
* @return void | ||
*/ | ||
public function register() | ||
{ | ||
$this->app->singleton(TaggingUtility::class, function () { | ||
return new Util; | ||
}); | ||
} | ||
|
||
/** | ||
* (non-PHPdoc) | ||
* @see \Illuminate\Support\ServiceProvider::provides() | ||
*/ | ||
public function provides() | ||
{ | ||
return [TaggingUtility::class]; | ||
} | ||
} |
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