Skip to content

Commit

Permalink
fix merge issues for #850
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed May 28, 2022
1 parent f302a1c commit db421b2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions api.include.php
Original file line number Diff line number Diff line change
Expand Up @@ -9114,6 +9114,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Tqdev\PhpCrudApi\Column\ReflectionService;
use Tqdev\PhpCrudApi\Config;
use Tqdev\PhpCrudApi\Controller\Responder;
use Tqdev\PhpCrudApi\Middleware\Base\Middleware;
use Tqdev\PhpCrudApi\Middleware\Router\Router;
Expand All @@ -9123,9 +9124,9 @@ class TextSearchMiddleware extends Middleware
{
private $reflection;

public function __construct(Router $router, Responder $responder, array $properties, ReflectionService $reflection)
public function __construct(Router $router, Responder $responder, Config $config, string $middleware, ReflectionService $reflection)
{
parent::__construct($router, $responder, $properties);
parent::__construct($router, $responder, $config, $middleware);
$this->reflection = $reflection;
}

Expand Down Expand Up @@ -11697,7 +11698,7 @@ public function __construct(Config $config)
new CustomizationMiddleware($router, $responder, $config, $middleware, $reflection);
break;
case 'textSearch':
new TextSearchMiddleware($router, $responder, $properties, $reflection);
new TextSearchMiddleware($router, $responder, $config, $middleware, $reflection);
break;
case 'xml':
new XmlMiddleware($router, $responder, $config, $middleware, $reflection);
Expand Down
7 changes: 4 additions & 3 deletions api.php
Original file line number Diff line number Diff line change
Expand Up @@ -9114,6 +9114,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Tqdev\PhpCrudApi\Column\ReflectionService;
use Tqdev\PhpCrudApi\Config;
use Tqdev\PhpCrudApi\Controller\Responder;
use Tqdev\PhpCrudApi\Middleware\Base\Middleware;
use Tqdev\PhpCrudApi\Middleware\Router\Router;
Expand All @@ -9123,9 +9124,9 @@ class TextSearchMiddleware extends Middleware
{
private $reflection;

public function __construct(Router $router, Responder $responder, array $properties, ReflectionService $reflection)
public function __construct(Router $router, Responder $responder, Config $config, string $middleware, ReflectionService $reflection)
{
parent::__construct($router, $responder, $properties);
parent::__construct($router, $responder, $config, $middleware);
$this->reflection = $reflection;
}

Expand Down Expand Up @@ -11697,7 +11698,7 @@ public function __construct(Config $config)
new CustomizationMiddleware($router, $responder, $config, $middleware, $reflection);
break;
case 'textSearch':
new TextSearchMiddleware($router, $responder, $properties, $reflection);
new TextSearchMiddleware($router, $responder, $config, $middleware, $reflection);
break;
case 'xml':
new XmlMiddleware($router, $responder, $config, $middleware, $reflection);
Expand Down
2 changes: 1 addition & 1 deletion src/Tqdev/PhpCrudApi/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function __construct(Config $config)
new CustomizationMiddleware($router, $responder, $config, $middleware, $reflection);
break;
case 'textSearch':
new TextSearchMiddleware($router, $responder, $properties, $reflection);
new TextSearchMiddleware($router, $responder, $config, $middleware, $reflection);
break;
case 'xml':
new XmlMiddleware($router, $responder, $config, $middleware, $reflection);
Expand Down
5 changes: 3 additions & 2 deletions src/Tqdev/PhpCrudApi/Middleware/TextSearchMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Tqdev\PhpCrudApi\Column\ReflectionService;
use Tqdev\PhpCrudApi\Config;
use Tqdev\PhpCrudApi\Controller\Responder;
use Tqdev\PhpCrudApi\Middleware\Base\Middleware;
use Tqdev\PhpCrudApi\Middleware\Router\Router;
Expand All @@ -15,9 +16,9 @@ class TextSearchMiddleware extends Middleware
{
private $reflection;

public function __construct(Router $router, Responder $responder, array $properties, ReflectionService $reflection)
public function __construct(Router $router, Responder $responder, Config $config, string $middleware, ReflectionService $reflection)
{
parent::__construct($router, $responder, $properties);
parent::__construct($router, $responder, $config, $middleware);
$this->reflection = $reflection;
}

Expand Down

0 comments on commit db421b2

Please sign in to comment.