Commit fa8b058a by Lech Sawon

service registration

parent ac324a0f
......@@ -30,10 +30,6 @@ services:
#nadpisałem wcześniej automatycznie zarejestrowany serwis
App\Service\Reservation\AddReservation:
- '%env(RABBIT_URL)%'
- '@doctrine.orm.entity_manager'
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
......@@ -11,11 +11,8 @@ final class AddReservation
{
private EntityManagerInterface $manager;
private string $rabbitUrl;
public function __construct(string $rabbitUrl, EntityManagerInterface $manager)
public function __construct(EntityManagerInterface $manager)
{
$this->rabbitUrl = $rabbitUrl;
$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