Initial shortcode implementation

This commit is contained in:
Patrick Ward
2015-10-23 12:41:54 -04:00
parent 808a102d78
commit 68bb5b0e24
10 changed files with 669 additions and 1 deletions

View File

@ -0,0 +1,35 @@
<?php namespace Sensory5\Shortcode\Classes;
use Illuminate\Support\ServiceProvider;
class ShortcodeServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Register the service provider.
*/
public function register()
{
$this->app['shortcode'] = $this->app->share(function ($app) {
return new Shortcode();
});
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return array('shortcode');
}
}