Initial commit with tests, and stuff.

This commit is contained in:
2018-06-08 13:02:36 +03:00
commit e8fdb5109d
18 changed files with 1181 additions and 0 deletions

View 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'];
}
}