-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add a command to remove the acme demo bundle #499
Conversation
$security['security']['firewalls']['login'], $security['security']['firewalls']['secured_area']); | ||
|
||
file_put_contents($rootDir.'/config/routing_dev.yml', Yaml::dump($route, 6)); | ||
file_put_contents($rootDir.'/config/security.yml', Yaml::dump($security, 6)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will remove all comments in your config files
This command has already been rejected 3 or 4 times because it was not possible to ensure the removal would not remove some other stuff in the project. and this implementation does not take care of this at all. |
well i understand the problem... |
Your new solution is even worse as it will remove any config added by the user in these files |
you think that's better ? |
@inalgnu I think you should rather look here: #412 before going forward with this. |
@dlsniper can you please tell me why isn't it? |
Because some times AcmeBundle might be left with the developing application for a day or two and so the command is now useless for that case. Please read the whole thread from #412 :) |
have we considered the other option of making default symfony project empty and adding a simple command to create AcmeBundle example? Users who are comfortable using symfony do not need this example to be created by default. For new users, making sure the command is dead simple (1 line) would probably suffice to make sure the learning curve to getting symfony2 up and running is not too high. |
Or an option to create a symfony project with an argument to avoid acme bundle |
I'd welcome a nice solution to clean standard distribution of that Acme thing, even shipping Symfony without it is a viable for me. OTOH it isn't that hard to |
👎 having this command basically adds confusion to a simple SE. SE is a startup simple thing that you are free to modify later on and adjust to your needs. It is not the ultimate solution for every case. 👶 |
I'm also looking for a clean way to remove this AcmeBundle AFAIK, I've seen some other frameworks (Sencha Extjs/Touch frameworks for example) letting developers create a project skeleton with a command that also accept a 'starter' This command first creates an empty skeleton, as clean as possible, and, according to user choice, populate this skeleton with some dumy files as an example of application Therefore, if a developer, only want the clean skeleton, he/she tells this script to not populate the skeleton with dummy files Why not having the same logic with Symfony2, as already exposed in this thread ? |
👍 for @jdespatis approach. |
Maybe a better approach would be to create two distributions. The default could be a base one, a bit like https://github.com/ehough/symfony-barebones, and a demo would also be available to download, as a kickstart for enthusiast developers. |
I've also made an Empty Edition with AcmeDemo bundle and its configuration (routing and security) completely stripped of, because it's really slowing down the process of creating projects. This, in my opinion, should be the standard edition, and asecond edition should be made as @lavoiesl proposed (symfony1 had once a sandbox edition for this). |
struggling to find the time to finish the Liip distribution. there we aim to provide examples as branches while keeping master and so called feature branches (fe. adding FOSRestBundle or the CMF) separate. this way one can get various combinations of features along with examples using them in one repo. |
@lsmith77: This is not the way to go IMO. A Symfony2 Factory would be clearly welcomed, using a naked base (somewhere between the onefile-challenge bootstrap and a cleaned distribution and allowing to add easily bundles. |
fmpov, I prefer refering to the official symfony standard, and not to a git fork that may be obsolete whenever symfony-standard evolves So I've ended with this solution: somekind of git clone symfony-standard, and remove on the fly all Acme stuff Now in one single command, it generates a complete app with no acme (could be a bundle with a fake app for functional tests), and all CI files stuff |
I completely agree with you: a third party edition cannot be as fully trusted as the standard one. |
@gnugat I'd say it's preferable to have a clean symfony standard with no Acme inside, but have the possibility to run a command to install an AcmeBundle as an example ( That way, we would have the benefit of both worlds : a clean skeleton and a clean one with an example bundle, |
@jdespatis I really like the idea of a clean standard-edition and the possibility to run a console command to install AcmeBundle. |
@alsar exactly |
@jdespatis The Incenteev ParameterHandler will never ask whether you want to install a demo bundle. It is not even tied to Symfony at all. |
+1 For removing Acme from the standard and creating a sandbox for the acme demo bundle. You shouldn't create a command for only this imo |
Now that we have Composer, I suggest that instead of removing the Acme files/configuration, we actually makes its installation optional when using the Closing in favor of #639, which a meta-issue about things we might improve in the future but for which we don't have the solution yet. |
No description provided.