Skip to content

Commit ab5daf6

Browse files
committed
Made composer default
- For aiding in functional test debugging
1 parent d1f0897 commit ab5daf6

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"doctrine/phpcr-bundle": "1.0.x-dev",
1919
"doctrine/data-fixtures": "1.0.*",
2020

21+
"symfony/monolog-bundle": "2.2.*",
22+
2123
"jackalope/jackalope": "1.0.0-beta1",
2224
"jackalope/jackalope-doctrine-dbal": "1.0.*"
2325
},

skeleton/app/config/default.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
$loader->import('dist/parameters.yml');
1414
$loader->import('dist/framework.yml');
15+
if (class_exists('Symfony\Bundle\MonologBundle\MonologBundle')) {
16+
$loader->import('dist/monolog.yml');
17+
}
1518
$loader->import('dist/doctrine.yml');
1619
$loader->import('dist/security.yml');
1720
$loader->import('dist/phpcrodm.php');

skeleton/app/config/dist/monolog.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
monolog:
2+
handlers:
3+
main:
4+
type: stream
5+
path: %kernel.logs_dir%/%kernel.environment%.log
6+
level: debug

skeleton/app/config/routing/sonata_routing.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ sonata_admin:
88
prefix: /admin
99
requirements:
1010
id: .+
11+
12+
admin_dashboard:
13+
pattern: /admin/
14+
defaults:
15+
_controller: FrameworkBundle:Redirect:redirect
16+
route: sonata_admin_dashboard

src/Symfony/Cmf/Component/Testing/HttpKernel/TestKernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function init()
3030
'\Symfony\Bundle\FrameworkBundle\FrameworkBundle',
3131
'\Symfony\Bundle\SecurityBundle\SecurityBundle',
3232
'\Symfony\Bundle\TwigBundle\TwigBundle',
33+
'\Symfony\Bundle\MonologBundle\MonologBundle',
3334
));
3435

3536
$this->registerBundleSet('phpcr_odm', array(

0 commit comments

Comments
 (0)