Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
symfony_2504
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lech Sawoń
symfony_2504
Commits
fa8b058a
Commit
fa8b058a
authored
Oct 27, 2021
by
Lech Sawon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service registration
parent
ac324a0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
8 deletions
+1
-8
services.yaml
config/services.yaml
+0
-4
AddReservation.php
src/Service/Reservation/AddReservation.php
+1
-4
No files found.
config/services.yaml
View file @
fa8b058a
...
@@ -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
src/Service/Reservation/AddReservation.php
View file @
fa8b058a
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment