Skip to content
This repository was archived by the owner on Jan 6, 2020. It is now read-only.

Add routing and security configuration to AcmeDemoBundle#120

Closed
romainneutron wants to merge 3 commits intosensiolabs:masterfrom
romainneutron:acme-demo-bundle
Closed

Add routing and security configuration to AcmeDemoBundle#120
romainneutron wants to merge 3 commits intosensiolabs:masterfrom
romainneutron:acme-demo-bundle

Conversation

@romainneutron
Copy link
Copy Markdown
Contributor

This follows #119

I'm not sur of the right implementation: I'm using the Yaml component that strips blank lines and comments. As the AcmeDemoBundle is supposed to be used by newcomers, I don't think that losing readability and comments in these config files is a good thing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about renaming secured_area to demo_secured_idea to make it clearer that it is a firewall related to the demo ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that. Prefixing everything with demo_ would make it easier for the developer to remove things he does not need to keep.

@romainneutron romainneutron changed the title [WIP] Add routing and security configuration to AcmeDemoBundle Add routing and security configuration to AcmeDemoBundle Mar 31, 2014
@romainneutron
Copy link
Copy Markdown
Contributor Author

I've updated the PR. It addresses @stof comment. I've also dropped the use of the Yaml component.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's very fragile as it means that the user actually stored this file in his repository. If not, the question will be asked when the user deploy their website. Any other way (via Composer) to know if we've been called via create-project?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

composer plugins can hook in the composer command, but there is no way to run a composer script only at this time

@fabpot fabpot closed this in 474dfe2 Apr 1, 2014
fabpot added a commit to symfony/symfony-standard that referenced this pull request Apr 1, 2014
…onBundle (romainneutron)

This PR was squashed before being merged into the 2.4-dev branch (closes #645).

Discussion
----------

Move Acme demo bundle configuration to sensio DistributionBundle

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| License       | MIT

This is related to sensiolabs/SensioDistributionBundle#120

Commits
-------

0d8d160 Move Acme demo bundle configuration to sensio DistributionBundle
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants