added docblocks, contract, and service provider

This commit is contained in:
Jake Mitchell
2016-06-25 21:12:01 +00:00
parent 0985c6c829
commit ea3ec0bacc
13 changed files with 407 additions and 179 deletions

View File

@@ -0,0 +1,40 @@
<?php
namespace Glmdev\Meta;
use Glmdev\Meta\Contracts;
use Glmdev\Meta\Meta;
use Illuminate\Support\ServiceProvider;
class MetaServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;
/**
* Register any package services.
*
* @return void
*/
public function register()
{
$this->app->bind(Contracts\Meta::class, 'Meta');
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [
Contracts\Meta::class,
'Meta',
];
}
}