Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Pôle IS
Bundles Symfony 2
plantuml-bundle
Commits
a1642973
Commit
a1642973
authored
May 12, 2016
by
Guillaume Perréal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction d'un bug dans les templates de services.
parent
8f94a20a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
DependencyInjection/IrsteaPlantUmlExtension.php
DependencyInjection/IrsteaPlantUmlExtension.php
+4
-6
Resources/config/services.yml
Resources/config/services.yml
+7
-8
No files found.
DependencyInjection/IrsteaPlantUmlExtension.php
View file @
a1642973
...
...
@@ -138,7 +138,7 @@ class IrsteaPlantUmlExtension extends Extension
}
else
{
$container
->
setDefinition
(
$decoratorId
,
new
DefinitionDecorator
(
'irstea.plant_uml.decorator.composite.template'
))
->
replace
Argument
(
0
,
$decorators
);
->
set
Argument
s
([
$decorators
]
);
}
$filter
=
$this
->
loadFilter
(
$decoratorId
,
$config
,
$container
)
?:
$defaultFilter
;
...
...
@@ -164,7 +164,7 @@ class IrsteaPlantUmlExtension extends Extension
if
(
in_array
(
$type
,
[
'entity'
,
'associations'
,
'fields'
]))
{
$container
->
setDefinition
(
$id
,
new
DefinitionDecorator
(
"irstea.plant_uml.decorator.
$type
.template"
))
->
replace
Argument
(
0
,
$em
);
->
set
Argument
s
([
$em
]
);
return
new
Reference
(
$id
);
}
...
...
@@ -184,7 +184,7 @@ class IrsteaPlantUmlExtension extends Extension
$namespaceId
=
"
$id
.namespace"
;
$container
->
setDefinition
(
$namespaceId
,
new
DefinitionDecorator
(
'irstea.plant_uml.namespaces.entities.template'
))
->
replace
Argument
(
0
,
$em
);
->
set
Argument
s
([
$em
]
);
return
new
Reference
(
$namespaceId
);
}
...
...
@@ -218,9 +218,7 @@ class IrsteaPlantUmlExtension extends Extension
*/
protected
function
addService
(
ContainerBuilder
$container
,
$id
,
$class
,
array
$arguments
=
[])
{
$container
->
setDefinition
(
$id
,
new
Definition
(
$class
,
$arguments
))
->
setPublic
(
false
);
$container
->
setDefinition
(
$id
,
new
Definition
(
$class
,
$arguments
));
return
new
Reference
(
$id
);
}
}
Resources/config/services.yml
View file @
a1642973
...
...
@@ -9,17 +9,17 @@ services:
class
:
Irstea\PlantUmlBundle\Model\ClassFilterInterface
abstract
:
true
factory
:
[
"
@irstea.plant_uml.filter.factory"
,
create
]
arguments
:
[[],
[]]
public
:
false
irstea.plant_uml.finder.classes.template
:
class
:
Irstea\PlantUmlBundle\Finder\ClassFinder
abstract
:
true
arguments
:
[
null
]
public
:
false
irstea.plant_uml.finder.entities.template
:
class
:
Irstea\PlantUmlBundle\Doctrine\EntityFinder
abstract
:
true
arguments
:
[
null
]
public
:
false
irstea.plant_uml.decorator.inheritance
:
class
:
Irstea\PlantUmlBundle\Model\Decorator\InheritanceDecorator
...
...
@@ -42,17 +42,17 @@ services:
irstea.plant_uml.decorator.entity.template
:
class
:
Irstea\PlantUmlBundle\Doctrine\EntityDecorator
abstract
:
true
arguments
:
[
null
]
public
:
false
irstea.plant_uml.decorator.associations.template
:
class
:
Irstea\PlantUmlBundle\Doctrine\AssociationDecorator
abstract
:
true
arguments
:
[
null
]
public
:
false
irstea.plant_uml.decorator.fields.template
:
class
:
Irstea\PlantUmlBundle\Doctrine\FieldDecorator
abstract
:
true
arguments
:
[
null
]
public
:
false
irstea.plant_uml.decorator.filtered.template
:
class
:
Irstea\PlantUmlBundle\Model\Decorator\FilteringDecorator
...
...
@@ -63,7 +63,6 @@ services:
class
:
Irstea\PlantUmlBundle\Model\Decorator\CompositeDecorator
abstract
:
true
public
:
false
arguments
:
[[]]
irstea.plant_uml.namespaces.php
:
class
:
Irstea\PlantUmlBundle\Model\Namespace_\Php\RootNamespace
...
...
@@ -78,4 +77,4 @@ services:
irstea.plant_uml.namespaces.entities.template
:
class
:
Irstea\PlantUmlBundle\Doctrine\DoctrineNamespace
abstract
:
true
arguments
:
[
null
]
public
:
false
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