Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
plantuml-bundle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Pôle IS
Bundles Symfony 2
plantuml-bundle
Commits
8f0fa199
Commit
8f0fa199
authored
May 17, 2016
by
Guillaume Perréal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Les namespaces n'étant pas stateless, il faut les instancier pour chaque graphe.
parent
839cbfc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
DependencyInjection/Builder/GraphDefinitionBuilder.php
DependencyInjection/Builder/GraphDefinitionBuilder.php
+6
-3
Resources/config/services.yml
Resources/config/services.yml
+9
-3
No files found.
DependencyInjection/Builder/GraphDefinitionBuilder.php
View file @
8f0fa199
...
...
@@ -90,7 +90,7 @@ class GraphDefinitionBuilder
protected
function
doBuild
()
{
list
(
$source
,
$sourceFilter
)
=
$this
->
buildSources
();
$layoutFilter
=
$this
->
filterBuilder
->
build
(
$this
->
config
[
'layout'
])
?:
$sourceFilter
;
$decorator
=
$this
->
buildFilteredDecorator
();
$namespace
=
$this
->
buildNamespace
();
...
...
@@ -199,7 +199,7 @@ class GraphDefinitionBuilder
protected
function
buildNamespace
()
{
$type
=
$this
->
config
[
'layout'
][
'namespaces'
];
if
(
$type
===
"entities"
)
{
return
$this
->
setDefinitionDecorator
(
"namespace.
$type
"
,
...
...
@@ -208,7 +208,10 @@ class GraphDefinitionBuilder
);
}
return
new
Reference
(
"irstea.plant_uml.namespaces.
$type
"
);
return
$this
->
setDefinitionDecorator
(
"namespace.
$type
"
,
"irstea.plant_uml.namespaces.
$type
.template"
,
);
}
/**
...
...
Resources/config/services.yml
View file @
8f0fa199
...
...
@@ -54,15 +54,21 @@ services:
abstract
:
true
public
:
false
irstea.plant_uml.namespaces.php
:
irstea.plant_uml.namespaces.php
.template
:
class
:
Irstea\PlantUmlBundle\Model\Namespace_\Php\RootNamespace
abstract
:
true
public
:
false
irstea.plant_uml.namespaces.flat
:
irstea.plant_uml.namespaces.flat
.template
:
class
:
Irstea\PlantUmlBundle\Model\Namespace_\FlatNamespace
abstract
:
true
public
:
false
irstea.plant_uml.namespaces.bundles
:
irstea.plant_uml.namespaces.bundles
.template
:
class
:
Irstea\PlantUmlBundle\Model\Namespace_\BundleNamespace
arguments
:
[
"
%kernel.bundles%"
]
abstract
:
true
public
:
false
irstea.plant_uml.namespaces.entities.template
:
class
:
Irstea\PlantUmlBundle\Doctrine\DoctrineNamespace
...
...
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