Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 1b29496

Browse files
committed
Merge pull request #70 from Elao/symfony3
[wip] Allow this bundle to be installed with Symfony3
2 parents 31f686a + ba91739 commit 1b29496

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor
2+
composer.lock

DataCollector/ContainerDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function collect(Request $request, Response $response, \Exception $except
8686
$definition = $this->resolveServiceDefinition($serviceId);
8787

8888
if ($definition instanceof Definition && $definition->isPublic()) {
89-
$services[$serviceId] = array('class' => $definition->getClass(), 'scope' => $definition->getScope());
89+
$services[$serviceId] = array('class' => $definition->getClass());
9090
} elseif ($definition instanceof Alias) {
9191
$services[$serviceId] = array('alias' => $definition);
9292
} else {

DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public function getConfigTreeBuilder()
4444
->arrayNode('assetic')
4545
->addDefaultsIfNotSet()
4646
->children()
47-
->booleanNode('enabled')->defaultTrue()->end()
48-
->booleanNode('display_in_wdt')->defaultTrue()->end()
47+
->booleanNode('enabled')->defaultFalse()->end()
48+
->booleanNode('display_in_wdt')->defaultFalse()->end()
4949
->end()
5050
->end()
5151
->arrayNode('twig')

Resources/views/Collector/container.html.twig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,11 @@
6161
<table>
6262
<tr>
6363
<th>Name</th>
64-
<th>Scope</th>
6564
<th>Class Name</th>
6665
</tr>
6766
{% for service_id, service in collector.services %}
6867
<tr class="{{ loop.index is odd ? 'odd' : 'even' }}">
6968
<th><code>{{ service_id }}</code></th>
70-
<td>
71-
{% if service.scope is defined %}
72-
{{ service.scope }}
73-
{% else %}
74-
N/A
75-
{% endif %}
76-
</td>
7769
<td>
7870
{% if service.class is defined %}
7971
{{ service.class }}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
}
1717
],
1818
"require": {
19-
"symfony/framework-bundle": "~2.1",
20-
"symfony/twig-bundle": "~2.0",
19+
"symfony/framework-bundle": "~2.1|~3.0",
20+
"symfony/twig-bundle": "~2.0|~3.0",
2121
"twig/twig": "~1.12"
2222
},
2323
"autoload": {

0 commit comments

Comments
 (0)