Skip to content

Commit 251f25b

Browse files
authored
Merge pull request #99 from lchrusciel/dev-mode
Added dev mode to the plugin skeleton
2 parents 3b03945 + f72231a commit 251f25b

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

tests/Application/app/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public function registerBundles(): array
2828
*/
2929
public function registerContainerConfiguration(LoaderInterface $loader): void
3030
{
31-
$loader->load($this->getRootDir() . '/config/config.yml');
31+
$loader->load($this->getRootDir() . '/config/config_' . $this->environment . '.yml');
3232
}
3333
}

tests/Application/app/config/config_dev.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,13 @@ imports:
44
doctrine:
55
dbal:
66
path: "%kernel.root_dir%/../var/db_dev.sql"
7+
8+
web_profiler:
9+
toolbar: true
10+
intercept_redirects: false
11+
12+
framework:
13+
router:
14+
resource: "%kernel.root_dir%/config/routing_dev.yml"
15+
profiler:
16+
enabled: true
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sylius:
2+
resource: "../../../../vendor/sylius/sylius/app/config/routing_dev.yml"

0 commit comments

Comments
 (0)