Moved some JSON around. [skip-ci]

This commit is contained in:
James Cole
2014-07-15 07:08:13 +02:00
parent 0e09e52e45
commit 09b6c4d982
8 changed files with 82 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
<?php
namespace Firefly\Storage\Budget;
interface BudgetRepositoryInterface {
}

View File

@@ -0,0 +1,8 @@
<?php
namespace Firefly\Storage\Budget;
class EloquentBudgetRepository implements BudgetRepositoryInterface {
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Firefly\Storage\Category;
interface CategoryRepositoryInterface {
public function get();
}

View File

@@ -0,0 +1,11 @@
<?php
namespace Firefly\Storage\Category;
class EloquentCategoryRepository implements CategoryRepositoryInterface {
public function get() {
return \Auth::user()->categories()->get();
}
}

View File

@@ -34,6 +34,15 @@ class StorageServiceProvider extends ServiceProvider
'Firefly\Storage\Component\ComponentRepositoryInterface',
'Firefly\Storage\Component\EloquentComponentRepository'
);
$this->app->bind(
'Firefly\Storage\Budget\BudgetRepositoryInterface',
'Firefly\Storage\Budget\EloquentBudgetRepository'
);
$this->app->bind(
'Firefly\Storage\Category\CategoryRepositoryInterface',
'Firefly\Storage\Category\EloquentCategoryRepository'
);
}
}