@@ -40,6 +40,9 @@ |
||
| 40 | 40 | return $this->configManagers->get($name); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $name |
|
| 45 | + */ |
|
| 43 | 46 | private function getConfigFile($name) |
| 44 | 47 | { |
| 45 | 48 | return $this->app['path.config'] |
@@ -24,6 +24,9 @@ |
||
| 24 | 24 | protected $model; |
| 25 | 25 | protected $elements; |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $name |
|
| 29 | + */ |
|
| 27 | 30 | public function __construct($name, Application $app, Repository $repository) |
| 28 | 31 | { |
| 29 | 32 | $this->name = $name; |
@@ -5,10 +5,10 @@ |
||
| 5 | 5 | |
| 6 | 6 | use AdminElement; |
| 7 | 7 | use Illuminate\Contracts\Config\Repository; |
| 8 | -use Illuminate\Foundation\Application; |
|
| 9 | -use JsonSerializable; |
|
| 10 | 8 | use Illuminate\Contracts\Support\Arrayable; |
| 11 | 9 | use Illuminate\Contracts\Support\Jsonable; |
| 10 | +use Illuminate\Foundation\Application; |
|
| 11 | +use JsonSerializable; |
|
| 12 | 12 | use Sco\Admin\Contracts\ConfigManagerInterface; |
| 13 | 13 | |
| 14 | 14 | class ConfigManager implements ConfigManagerInterface, Arrayable, Jsonable, JsonSerializable |
@@ -5,10 +5,6 @@ |
||
| 5 | 5 | use Illuminate\Config\Repository as ConfigRepository; |
| 6 | 6 | use Illuminate\Contracts\Validation\Factory; |
| 7 | 7 | use Illuminate\Foundation\Application; |
| 8 | -use JsonSerializable; |
|
| 9 | -use Illuminate\Contracts\Support\Arrayable; |
|
| 10 | -use Illuminate\Contracts\Support\Jsonable; |
|
| 11 | -use Sco\Admin\Contracts\ConfigFactoryInterface; |
|
| 12 | 8 | use Sco\Admin\Contracts\ConfigManagerInterface; |
| 13 | 9 | use Sco\Admin\Contracts\ModelFactoryInterface; |
| 14 | 10 | use Sco\Admin\Contracts\RepositoryInterface; |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Closure; |
| 6 | 6 | use Illuminate\Auth\Access\AuthorizationException; |
| 7 | 7 | use Illuminate\Contracts\Auth\Factory as Auth; |
| 8 | -use Sco\Admin\Contracts\ConfigFactoryInterface; |
|
| 9 | 8 | |
| 10 | 9 | class ModelAuthorize |
| 11 | 10 | { |