Configure all hub filter services by namespace #810
This commit is contained in:
parent
0f909ad7e0
commit
3c79d1fe28
1 changed files with 5 additions and 20 deletions
|
|
@ -27,6 +27,11 @@ services:
|
||||||
# fetching services directly from the container via $container->get() won't work.
|
# fetching services directly from the container via $container->get() won't work.
|
||||||
# The best practice is to be explicit about your dependencies anyway.
|
# The best practice is to be explicit about your dependencies anyway.
|
||||||
|
|
||||||
|
_instanceof:
|
||||||
|
# make every hub filter public
|
||||||
|
App\Service\HubFilter\HubFilterInterface:
|
||||||
|
public: true
|
||||||
|
|
||||||
# makes classes in src/ available to be used as services
|
# makes classes in src/ available to be used as services
|
||||||
# this creates a service per class whose id is the fully-qualified class name
|
# this creates a service per class whose id is the fully-qualified class name
|
||||||
App\:
|
App\:
|
||||||
|
|
@ -332,30 +337,10 @@ services:
|
||||||
$rt: "@App\\Service\\RisingTideGateway"
|
$rt: "@App\\Service\\RisingTideGateway"
|
||||||
$trans: "@Symfony\\Contracts\\Translation\\TranslatorInterface"
|
$trans: "@Symfony\\Contracts\\Translation\\TranslatorInterface"
|
||||||
|
|
||||||
App\Service\HubFilter\Filters\DistanceHubFilter:
|
|
||||||
public: true
|
|
||||||
|
|
||||||
App\Service\HubFilter\Filters\DateAndTimeHubFilter:
|
|
||||||
public: true
|
|
||||||
|
|
||||||
App\Service\HubFilter\Filters\JoTypeHubFilter:
|
|
||||||
public: true
|
|
||||||
|
|
||||||
App\Service\HubFilter\Filters\MaxResultsHubFilter:
|
|
||||||
public: true
|
|
||||||
|
|
||||||
App\Service\HubFilter\Filters\PaymentMethodHubFilter:
|
|
||||||
public: true
|
|
||||||
|
|
||||||
App\Service\HubFilter\Filters\RiderAvailabilityHubFilter:
|
|
||||||
public: true
|
|
||||||
|
|
||||||
App\Service\HubFilter\Filters\InventoryHubFilter:
|
App\Service\HubFilter\Filters\InventoryHubFilter:
|
||||||
public: true
|
|
||||||
arguments:
|
arguments:
|
||||||
$im: "@App\\Service\\InventoryManager"
|
$im: "@App\\Service\\InventoryManager"
|
||||||
|
|
||||||
App\Service\HubFilter\Filters\RoundRobinHubFilter:
|
App\Service\HubFilter\Filters\RoundRobinHubFilter:
|
||||||
public: true
|
|
||||||
arguments:
|
arguments:
|
||||||
$hub_distributor: "@App\\Service\\HubDistributor"
|
$hub_distributor: "@App\\Service\\HubDistributor"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue