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!
02.
Security Fundamentals
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!
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
}
}
8 Comments
Hi Ryan,
two questions,
1) Symfony documentation looks a bit confusing to me. Many of the configuration block seems to be missing in the documentation.
For example, if you see these screenshots: http://imgur.com/YUK84Fa , which is taken from this page: https://symfony.com/doc/cur....
Or this: http://imgur.com/DF6chdT, taken from https://symfony.com/doc/cur...
another: http://imgur.com/aVPq9SP
How the new symfony users would understand the security.yml will look like - is there any straight-forward way? Would be very kind if you can point this in the documentation, not this tutorial.
2) You mentioned in this screencast, "If your security.yml file is mostly empty, don’t worry! You installed Symfony in a slightly different way." - what is the other way of installation to get a bit more descriptive security.yml?
Thanks in advance Ryan.
Hey Raimen!
1) Wow, I'm so glad you reported this! The missing code blocks are a bug on the symfony.com servers - I just reported it (it's a big bug, many code blocks are missing). This will be fixed very soon: you are not missing anything :).
2) Actually, I don't think that either of the ways of installation (the other being the create-project method) give you a very descriptive security.yml file anymore. But that's by design: the files used to come with *a lot* of stuff you didn't need. To see a complete security.yml file, you can of course download the code from this screencast. But also, take a look at the symfony-demo: https://github.com/symfony/...
Cheers!
Thanks Ryan!
How can I run this course's code? With the command I use for starting the server I get this:
$ php app/console server:start
PHP Warning: require_once(D:\media\downloads\knpuniversity\symfony2-ep3\start\a
pp/bootstrap.php.cache): failed to open stream: No such file or directory in D:\
media\downloads\knpuniversity\symfony2-ep3\start\app\console on line 10
Warning: require_once(D:\media\downloads\knpuniversity\symfony2-ep3\start\app/bo
otstrap.php.cache): failed to open stream: No such file or directory in D:\media
\downloads\knpuniversity\symfony2-ep3\start\app\console on line 10
PHP Fatal error: require_once(): Failed opening required 'D:\media\downloads\kn
puniversity\symfony2-ep3\start\app/bootstrap.php.cache' (include_path='C:\xampp\
php\PEAR') in D:\media\downloads\knpuniversity\symfony2-ep3\start\app\console on
line 10
Fatal error: require_once(): Failed opening required 'D:\media\downloads\knpuniv
ersity\symfony2-ep3\start\app/bootstrap.php.cache' (include_path='C:\xampp\php\P
EAR') in D:\media\downloads\knpuniversity\symfony2-ep3\start\app\console on line
10
Yo Jelle S.!
Make sure you run
composer installfirst. This is now an older tutorial - our newer tutorials all have accurate README.md files with all the setup details, but this one is missing some of those details. You'll also need to run a few database setup commands, which should be:Cheers!
Hi there, I got a problem. Since I use Symfony 2.7, I get totally different security.yml, and I don't know how to edit it to make it works like the one in this video, can someone help?
It looks like this:
Hey Léo!
You're right - in later versions of Symfony, the default security.yml looks smaller and simpler. But that's ok - it's just a starting point, and you can modify it however you want. At the end of this chapter, the security.yml file from the video looks like the code block below. This isn't fully functional yet - we go onto continue updating it in the next chapters. But if you want to use this as a starting point for what things should look like at the end of this chapter, this should work.
Cheers!
Ok, thank you.
"Houston: no signs of life"
Start the conversation!