Chapters
36 Chapters
|
1:50:44
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!Compatible PHP versions: >=5.3.3
Subscribe to download the code!Compatible PHP versions: >=5.3.3
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
09.
Entity Security
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=5.3.3",
"symfony/symfony": "~2.4", // v2.4.2
"doctrine/orm": "~2.2,>=2.2.3", // v2.4.2
"doctrine/doctrine-bundle": "~1.2", // v1.2.0
"twig/extensions": "~1.0", // v1.0.1
"symfony/assetic-bundle": "~2.3", // v2.3.0
"symfony/swiftmailer-bundle": "~2.3", // v2.3.5
"symfony/monolog-bundle": "~2.4", // v2.5.0
"sensio/distribution-bundle": "~2.3", // v2.3.4
"sensio/framework-extra-bundle": "~3.0", // v3.0.0
"sensio/generator-bundle": "~2.3", // v2.3.4
"incenteev/composer-parameter-handler": "~2.0", // v2.1.0
"doctrine/doctrine-fixtures-bundle": "~2.2.0", // v2.2.0
"ircmaxell/password-compat": "~1.0.3", // 1.0.3
"phpunit/phpunit": "~4.1" // 4.1.0
}
}
3 Comments
Hey there!
I have a question about creating bundles. What kind of logic should we follow in order to determine if is necessary to create a new bundle or not ?
Thanks in advance.
Hey Diego!
Actually, this is a big topic and something that's been changing! Though you don't see it (yet) in the Symfony series, the recommendation now (unless you're building code to be shared between projects) is to just have one bundle. You're of course free to add more if you feel like one feature is *really* different than everything else and it *feels* better to have it in a different bundle, but I would push you towards less bundles. Bundles are basically just directories, and having less directories and depth will make your project easier to navigate. In case you haven't seen it, here's a bit about the *why* behind the AppBundle: http://knpuniversity.com/bl...
Cheers!
Nice article, for the moment I'll follow the AppBundle structure for simplicity
Thanks for your time!
"Houston: no signs of life"
Start the conversation!