removed foundation integration
This commit is contained in:
parent
43ad667c40
commit
9c2a7a2044
@ -11,8 +11,7 @@
|
||||
"require": {
|
||||
"illuminate/support": "^5.2",
|
||||
"illuminate/database": "^5.2",
|
||||
"ramsey/uuid": "^3.4",
|
||||
"glmdev/foundation": "^0.0.17"
|
||||
"ramsey/uuid": "^3.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~4.0"
|
||||
|
@ -1,39 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Glmdev\Meta;
|
||||
|
||||
use Glmdev\Foundation\Contracts\FoundationPackageContract;
|
||||
|
||||
class FoundationMetaPackage implements FoundationPackageContract {
|
||||
|
||||
public function getBindName(){
|
||||
return "meta";
|
||||
}
|
||||
|
||||
public function getServiceProvider(){
|
||||
return \Glmdev\Meta\MetaServiceProvider::class;
|
||||
}
|
||||
|
||||
public function getInstance(){
|
||||
return new $this;
|
||||
}
|
||||
|
||||
public function getPublications(){
|
||||
$publications = [];
|
||||
|
||||
return $publications;
|
||||
}
|
||||
|
||||
public function getMiddleware(){
|
||||
return [];
|
||||
}
|
||||
|
||||
public function configModifies(){
|
||||
return [];
|
||||
}
|
||||
|
||||
public function configCallback( $type, array $bootstrap ){
|
||||
return $bootstrap;
|
||||
}
|
||||
|
||||
}
|
@ -2,14 +2,13 @@
|
||||
|
||||
namespace Glmdev\Meta;
|
||||
|
||||
use Glmdev\Foundation\Contracts\AbstractlyRoutedModelContract as ModelForm;
|
||||
use Glmdev\Meta\Contracts\MetaContract;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Ramsey\Uuid\Uuid;
|
||||
|
||||
class Meta extends Model implements ModelForm, MetaContract
|
||||
class Meta extends Model implements MetaContract
|
||||
{
|
||||
/**
|
||||
* Allow the changing of the meta and uuid database fields.
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
namespace Glmdev\Meta;
|
||||
|
||||
use Glmdev\Meta\Contracts;
|
||||
use Glmdev\Meta\Meta;
|
||||
use Glmdev\Meta\Contracts\MetaContract;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class MetaServiceProvider extends ServiceProvider
|
||||
@ -22,7 +21,7 @@ class MetaServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->bind(Contracts\Meta::class, 'Meta');
|
||||
$this->app->bind(MetaContract::class, 'Meta');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -33,7 +32,7 @@ class MetaServiceProvider extends ServiceProvider
|
||||
public function provides()
|
||||
{
|
||||
return [
|
||||
Contracts\Meta::class,
|
||||
MetaContract::class,
|
||||
'Meta',
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user