mirror of
https://github.com/ivuorinen/bbcodeparser.git
synced 2026-01-26 11:23:58 +00:00
Initial commit with tests, and stuff.
This commit is contained in:
36
src/BBCodeParserServiceProvider.php
Normal file
36
src/BBCodeParserServiceProvider.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php namespace ivuorinen\BBCode;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class BBCodeParserServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* Indicates if loading of the provider is deferred.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected $defer = true;
|
||||
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->bind('bbcode', function () {
|
||||
return new BBCodeParser;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the services provided by the provider.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function provides()
|
||||
{
|
||||
return ['bbcode'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user