-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Cookbook] How to use components #1899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
.. tip:: | ||
|
||
If you want to use all the Symfony2 Component, then instead of adding them one by one: |
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.
I don't recommend this because it requries not only the components, but the complete Symfony2 core Framework including Twig, the Doctrine-, Monolog-, Propel-, Swiftmailer- and Twig Bridges and the Framework-, Security-, Twig- and WebProfiler Bundles.
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.
Yes, but all the components are in the same folder. Otherwise they are in separate folders.
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.
yeah, but who cares when using composer ? you don't need to bother about the way stuff are stored in the vendor/ folder
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.
@stof Ok. You're right.
Nevertheless, I still think, that the best method to write a script that can access any component is to use:
{
"require": {
"symfony/symfony": "2.1.*"
}
}
I don't think this is needed because it is already included in all component pages. And this should be merged into the |
Using Finder Component | ||
---------------------- | ||
|
||
1. Create a new empty folder. |
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.
The dot should be a semi colon.
Hey Włodzimierz! I've patched this into the 2.0 branch at sha: de1e7db. It does contain some information that is generally repeated elsewhere (on the internet), BUT I think it's important to give the reader everything he/she needs to at least get started with a component right in this one spot. So, I think I like it :). I did move it into the components documentation, as a special standalone document and linked to it from each component. If anyone sees any issues, please let me know! Thanks! |
Maybe trival note, but It helps to start exploring components.
Should it go to master branch? I don't know and await some feedback.