Commit fa8b058a by Lech Sawon

service registration

parent ac324a0f
...@@ -30,10 +30,6 @@ services: ...@@ -30,10 +30,6 @@ services:
#nadpisałem wcześniej automatycznie zarejestrowany serwis #nadpisałem wcześniej automatycznie zarejestrowany serwis
App\Service\Reservation\AddReservation: App\Service\Reservation\AddReservation:
- '%env(RABBIT_URL)%'
- '@doctrine.orm.entity_manager'
# add more service definitions when explicit configuration is needed # add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones # please note that last definitions always *replace* previous ones
...@@ -11,11 +11,8 @@ final class AddReservation ...@@ -11,11 +11,8 @@ final class AddReservation
{ {
private EntityManagerInterface $manager; private EntityManagerInterface $manager;
private string $rabbitUrl; public function __construct(EntityManagerInterface $manager)
public function __construct(string $rabbitUrl, EntityManagerInterface $manager)
{ {
$this->rabbitUrl = $rabbitUrl;
$this->manager = $manager; $this->manager = $manager;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment