@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use PhpBoot\DB\DB; |
| 25 | 25 | use PhpBoot\DI\DIContainerBuilder; |
| 26 | 26 | use PhpBoot\DI\Traits\EnableDIAnnotations; |
| 27 | -use PhpBoot\Lock\LocalAutoLock; |
|
| 28 | 27 | use PhpBoot\Utils\Logger; |
| 29 | 28 | use Psr\Container\ContainerExceptionInterface; |
| 30 | 29 | use Psr\Container\ContainerInterface; |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use DI\FactoryInterface; |
| 6 | 6 | use \DI\InvokerInterface as DIInvokerInterface; |
| 7 | 7 | use Doctrine\Common\Cache\Cache; |
| 8 | -use PhpBoot\Cache\LocalCacheInterface; |
|
| 9 | 8 | use PhpBoot\Controller\Annotations\BindAnnotationHandler; |
| 10 | 9 | use PhpBoot\Controller\Annotations\ClassAnnotationHandler; |
| 11 | 10 | use PhpBoot\Controller\Annotations\HookAnnotationHandler; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace PhpBoot\ORM; |
| 4 | 4 | |
| 5 | -use DI\Container; |
|
| 6 | 5 | use DI\FactoryInterface; |
| 7 | 6 | use Doctrine\Common\Cache\Cache; |
| 8 | 7 | use PhpBoot\DI\DIContainerBuilder; |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $line = $e->getLine(); |
| 36 | 36 | } |
| 37 | 37 | if($level){ |
| 38 | - Logger::$level($message, $context +['@file'=>$file, '@line'=>$line]); |
|
| 38 | + Logger::$level($message, $context +['@file'=>$file, '@line'=>$line]); |
|
| 39 | 39 | } |
| 40 | 40 | throw $e; |
| 41 | 41 | } |
@@ -67,10 +67,10 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | |
| 69 | 69 | static public function connect(Application $app, |
| 70 | - $dsn, |
|
| 71 | - $username, |
|
| 72 | - $password, |
|
| 73 | - $options = []) |
|
| 70 | + $dsn, |
|
| 71 | + $username, |
|
| 72 | + $password, |
|
| 73 | + $options = []) |
|
| 74 | 74 | { |
| 75 | 75 | $options += [ |
| 76 | 76 | \PDO::ATTR_ERRMODE =>\PDO::ERRMODE_EXCEPTION, |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | return $this->connection; |
| 166 | 166 | } |
| 167 | 167 | /** |
| 168 | - * Splice sql use raw string(without escaping) |
|
| 168 | + * Splice sql use raw string(without escaping) |
|
| 169 | 169 | * for example: |
| 170 | 170 | * where('time>?', 'now()') => " WHERE time > 'now()' " |
| 171 | 171 | * where('time>?', Sql::raw('now()')) => " WHERE time > now() " |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | $res = array_pop($this->waitResults); |
| 56 | 56 | if(isset($res[1])){ |
| 57 | - \PhpBoot\abort(new RpcException($res['reason'])); |
|
| 57 | + \PhpBoot\abort(new RpcException($res['reason'])); |
|
| 58 | 58 | }else{ |
| 59 | 59 | return $res[0]; |
| 60 | 60 | } |
@@ -8,7 +8,6 @@ discard block |
||
| 8 | 8 | use PhpBoot\Docgen\Swagger\Schemas\ArraySchemaObject; |
| 9 | 9 | use PhpBoot\Docgen\Swagger\Schemas\BodyParameterObject; |
| 10 | 10 | use PhpBoot\Docgen\Swagger\Schemas\OperationObject; |
| 11 | -use PhpBoot\Docgen\Swagger\Schemas\OtherParameterObject; |
|
| 12 | 11 | use PhpBoot\Docgen\Swagger\Schemas\PrimitiveSchemaObject; |
| 13 | 12 | use PhpBoot\Docgen\Swagger\Schemas\RefSchemaObject; |
| 14 | 13 | use PhpBoot\Docgen\Swagger\Schemas\ResponseObject; |
@@ -22,7 +21,6 @@ discard block |
||
| 22 | 21 | use PhpBoot\Metas\ParamMeta; |
| 23 | 22 | use PhpBoot\Metas\ReturnMeta; |
| 24 | 23 | use PhpBoot\Utils\ArrayHelper; |
| 25 | -use PhpBoot\Validator\Validator; |
|
| 26 | 24 | use Symfony\Component\HttpKernel\Exception\HttpException; |
| 27 | 25 | |
| 28 | 26 | class Swagger extends SwaggerObject |
@@ -234,10 +234,10 @@ discard block |
||
| 234 | 234 | * @return RefSchemaObject |
| 235 | 235 | */ |
| 236 | 236 | public function makeTempSchema(Application $app, |
| 237 | - ControllerContainer $controller, |
|
| 238 | - $action, |
|
| 239 | - Route $route, |
|
| 240 | - array $arr, $suffix) |
|
| 237 | + ControllerContainer $controller, |
|
| 238 | + $action, |
|
| 239 | + Route $route, |
|
| 240 | + array $arr, $suffix) |
|
| 241 | 241 | { |
| 242 | 242 | $className = self::getShortClassName($controller->getClassName()); |
| 243 | 243 | $name = $className . ucfirst($action) . $suffix; |
@@ -293,10 +293,10 @@ discard block |
||
| 293 | 293 | * @return RefSchemaObject |
| 294 | 294 | */ |
| 295 | 295 | public function getRefSchema(Application $app, |
| 296 | - ControllerContainer $controller, |
|
| 297 | - $action, |
|
| 298 | - Route $route, |
|
| 299 | - EntityContainer $container) |
|
| 296 | + ControllerContainer $controller, |
|
| 297 | + $action, |
|
| 298 | + Route $route, |
|
| 299 | + EntityContainer $container) |
|
| 300 | 300 | { |
| 301 | 301 | $name = $container->getClassName(); |
| 302 | 302 | if (!isset($this->definitions[$name])) { |
@@ -444,10 +444,10 @@ discard block |
||
| 444 | 444 | * @return ArraySchemaObject |
| 445 | 445 | */ |
| 446 | 446 | public function getArraySchema(Application $app, |
| 447 | - ControllerContainer $controller, |
|
| 448 | - $action, |
|
| 449 | - Route $route, |
|
| 450 | - ArrayContainer $container) |
|
| 447 | + ControllerContainer $controller, |
|
| 448 | + $action, |
|
| 449 | + Route $route, |
|
| 450 | + ArrayContainer $container) |
|
| 451 | 451 | { |
| 452 | 452 | $schema = new ArraySchemaObject(); |
| 453 | 453 | $itemContainer = $container->getContainer(); |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | } |
| 31 | 31 | /** |
| 32 | 32 | * update('table')->set(['a'=>1]) => "UPDATE table SET a=1" |
| 33 | - |
|
| 34 | 33 | * update('table')->set('a=?',1) => "UPDATE table SET a=1" |
| 35 | 34 | * @param array|string $expr |
| 36 | 35 | * @param mixed $_ |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | } |
| 120 | 120 | class ValuesImpl |
| 121 | 121 | { |
| 122 | - static public function values(Context $context, array $values){ |
|
| 122 | + static public function values(Context $context, array $values){ |
|
| 123 | 123 | $params = []; |
| 124 | 124 | $stubs = []; |
| 125 | 125 | foreach ($values as $v){ |