removed foundation integration
This commit is contained in:
parent
43ad667c40
commit
9c2a7a2044
@ -11,8 +11,7 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"illuminate/support": "^5.2",
|
"illuminate/support": "^5.2",
|
||||||
"illuminate/database": "^5.2",
|
"illuminate/database": "^5.2",
|
||||||
"ramsey/uuid": "^3.4",
|
"ramsey/uuid": "^3.4"
|
||||||
"glmdev/foundation": "^0.0.17"
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "~4.0"
|
"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;
|
namespace Glmdev\Meta;
|
||||||
|
|
||||||
use Glmdev\Foundation\Contracts\AbstractlyRoutedModelContract as ModelForm;
|
|
||||||
use Glmdev\Meta\Contracts\MetaContract;
|
use Glmdev\Meta\Contracts\MetaContract;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
use Ramsey\Uuid\Uuid;
|
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.
|
* Allow the changing of the meta and uuid database fields.
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
namespace Glmdev\Meta;
|
namespace Glmdev\Meta;
|
||||||
|
|
||||||
use Glmdev\Meta\Contracts;
|
use Glmdev\Meta\Contracts\MetaContract;
|
||||||
use Glmdev\Meta\Meta;
|
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
|
|
||||||
class MetaServiceProvider extends ServiceProvider
|
class MetaServiceProvider extends ServiceProvider
|
||||||
@ -22,7 +21,7 @@ class MetaServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function register()
|
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()
|
public function provides()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
Contracts\Meta::class,
|
MetaContract::class,
|
||||||
'Meta',
|
'Meta',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user