Skip to content

Commit

Permalink
Merge pull request #1317 from forkcms/protected-installer
Browse files Browse the repository at this point in the history
Only load the installer route when Fork is not installed.
  • Loading branch information
WouterSioen committed Nov 10, 2015
2 parents aead785 + 37fd663 commit 6e2747f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/config/config_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ imports:
framework:
secret: %kernel.secret%
router:
resource: "%kernel.root_dir%/config/routing.yml"
resource: "%kernel.root_dir%/config/routing_install.yml"
strict_requirements: ~
form: ~
csrf_protection: ~
Expand Down
2 changes: 2 additions & 0 deletions app/config/config_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ framework:
storage_id: session.storage.mock_file
profiler:
collect: false
router:
resource: "%kernel.root_dir%/config/routing_install.yml"

web_profiler:
toolbar: false
Expand Down
3 changes: 0 additions & 3 deletions app/config/routing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
installer:
resource: "@ForkCMSInstallerBundle/Resources/config/routing.yml"

backend:
path: /private/{_locale}/{module}/{action}
defaults:
Expand Down
6 changes: 6 additions & 0 deletions app/config/routing_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
installer:
resource: "@ForkCMSInstallerBundle/Resources/config/routing.yml"

# default routes
_main:
resource: routing.yml

0 comments on commit 6e2747f

Please sign in to comment.