@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace ntentan\nibii; |
4 | 4 | |
5 | -use ntentan\panie\Container; |
|
6 | -use ntentan\kaikai\Cache; |
|
7 | 5 | use ntentan\atiaa\DbContext; |
6 | +use ntentan\kaikai\Cache; |
|
7 | +use ntentan\panie\Container; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * A collection of utility methods used as helpers for loading |
@@ -21,11 +21,11 @@ |
||
21 | 21 | $this->container = $container; |
22 | 22 | $this->dbContext = $container->resolve(DbContext::class); |
23 | 23 | $this->container->bind(interfaces\ModelJoinerInterface::class) |
24 | - ->to(Resolver::class); |
|
24 | + ->to(Resolver::class); |
|
25 | 25 | $this->container->bind(interfaces\TableNameResolverInterface::class) |
26 | - ->to(Resolver::class); |
|
26 | + ->to(Resolver::class); |
|
27 | 27 | $this->container->bind(interfaces\ModelClassResolverInterface::class) |
28 | - ->to(Resolver::class); |
|
28 | + ->to(Resolver::class); |
|
29 | 29 | $this->cache = $this->container->resolve(Cache::class); |
30 | 30 | self::$instance = $this; |
31 | 31 | } |
@@ -26,8 +26,6 @@ |
||
26 | 26 | |
27 | 27 | namespace ntentan\nibii; |
28 | 28 | |
29 | -use ntentan\atiaa\Db; |
|
30 | - |
|
31 | 29 | /** |
32 | 30 | * Description of DataOperations |
33 | 31 | * |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace ntentan\nibii; |
4 | 4 | |
5 | -use ntentan\utils\Text; |
|
6 | -use ntentan\atiaa\Db; |
|
7 | - |
|
8 | 5 | /** |
9 | 6 | * A DriverAdaptr is a generic database adapter. |
10 | 7 | * This adapter implements a lot of its operations through the atiaa library. |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace ntentan\nibii; |
4 | 4 | |
5 | -use ntentan\atiaa\Db; |
|
6 | - |
|
7 | 5 | class ModelDescription { |
8 | 6 | |
9 | 7 | private $fields = []; |
@@ -27,8 +27,6 @@ |
||
27 | 27 | namespace ntentan\nibii; |
28 | 28 | |
29 | 29 | use ntentan\utils\Text; |
30 | -use ntentan\atiaa\Db; |
|
31 | -use ntentan\panie\Container; |
|
32 | 30 | |
33 | 31 | class QueryOperations { |
34 | 32 |
@@ -26,9 +26,7 @@ |
||
26 | 26 | |
27 | 27 | namespace ntentan\nibii; |
28 | 28 | |
29 | -use ntentan\kaikai\Cache; |
|
30 | 29 | use ntentan\utils\Text; |
31 | -use ntentan\atiaa\Db; |
|
32 | 30 | |
33 | 31 | /** |
34 | 32 | * |
@@ -26,8 +26,6 @@ |
||
26 | 26 | |
27 | 27 | namespace ntentan\nibii; |
28 | 28 | |
29 | -use ntentan\panie\InjectionContainer; |
|
30 | - |
|
31 | 29 | abstract class Relationship { |
32 | 30 | |
33 | 31 | const BELONGS_TO = 'BelongsTo'; |