certificationy / symfony-pack Goto Github PK
View Code? Open in Web Editor NEWA series of questions to prepare for the Symfony certification
Home Page: https://certification.symfony.com/
License: MIT License
A series of questions to prepare for the Symfony certification
Home Page: https://certification.symfony.com/
License: MIT License
Are you sure for this one ?
symfony-pack/data/command-line.yml
Line 147 in bb5c679
Event dispatching seems not be deactivable:
https://github.com/symfony/symfony/blob/4d21ab4e7bbc1578c7f23b65f56fa605aff4fb10/src/Symfony/Component/Console/Application.php#L916
In the code above, there is no condition checking if events are disabled.
Question : True or false ? path() Twig function generates absolute urls.
According to source, RoutingExtension::path() generates not urls, but paths, and those are absolute by default, but can be made relative by setting the third parameter true. Signature of the helper is:
path($name, $parameters = array(), $relative = false)
Hi,
About the question in php.yml line 44 :
question: 'Does PHP support function overloading?'
answers:
- {value: "Yes, in all cases", correct: false}
- {value: "Yes, but not in all cases", correct: true}
- {value: "Yes, but it depends on the function scope", correct: false}
- {value: "Yes, except when it is an anonymous function", correct: false}
Does the correct answer would be clearer like this?
It could be useful to have basic knowledges about already validated PSR.
AFAIK, Symfony follows all validated PSRS and the PSR 11 (that will be accepted or is accepted?)
http://www.php-fig.org/psr/
ping @scaule if you want to contribute ? :)
Hi,
Thanks for this amazing project :)
Did you plan to release a new version of this package? Currently certificationy-cli
is based on version 1.6.1
but this version dates from 2018 and there is newer commits since this release.
Symfony 3 has been released ๐ and a new certification has been announced.
Is there a plan to provide the sf3 questions?
Maybe we start adding a info for which version the pack/files/questions are related.
Why TRACE and OPTIONS methods specified as safe (whereas it is not: https://datatracker.ietf.org/doc/html/rfc2616#section-9.1.1)?
question: 'Which design pattern implements the EventDispatcher component?'
answers:
- {value: Adapter, correct: false}
- {value: Decorator, correct: false}
- {value: Observer, correct: true}
- {value: Mediator, correct: true}
https://symfony.com/doc/current/components/event_dispatcher.html
While running default command php php certificationy.php
got yaml parsing errors/warning
PHP Warning: Illegal string offset 'manifest_uri' in /home/piotras/www/certificationy-cli/certificationy.php on line 26
PHP Stack trace:
PHP 1. {main}() /home/piotras/www/certificationy-cli/certificationy.php:0
[Symfony\Component\Yaml\Exception\ParseException]
Found unknown escape character "\S" at line 49 (near "- {value: "$container->getService('my.service')->setDefinition('My\Service\\Class')", correct: false}").
```
During the few weeks of usage I have noticed that some questions and answers could be improved.
I obviously appreciate the effort of having this in general and would like to thank the authors for their efforts - it is a great help indeed.
I wonder whether we should just submit PRs for either grammar / typos / validity of some questions?
I guess it's a massive topic to discuss so I would like to know your opinions first.
Example 1:
Symfony pack - Twig - In twig, what do you use if you want to optimize the size of the generated HTML content? This question IS NOT multiple choice.
[0] spaceless
[1] operators
[2] gzip
The correct answer (in my opinion) is "spaceless" even though the accepted answer is "gzip".
Twig doesn't have any capabilities to gzip the output... it's down to the framework underneath or the web-server returning the response.
Example 2:
Question #4 [Automated tests] What command used for run all of your application tests by default?
This question IS NOT multiple choice.
[0] phpunit
[1] phpunit -c app/
[2] phpunit -c
[3] phpunit app/
As per: https://symfony.com/doc/current/testing.html the answer should be probably
./vendor/bin/simple-phpunit
but all the existing answers depend on how phpunit was installed as well as where the phpunit.xml file is located... (I think?)
Example 3: (from PHP pack though)
uestion #8 [Basics] Which of the following are valid PHP variables?
This question IS multiple choice.
[0] $0x0
[1] ${0x0}
[2] &$variable
[3] @$foo
Even though ${0x0} is not considered a valid PHP variable - it actually works in all version of PHP from 4.x to 7.2 as long as one refers to it using the ${0x0} notation. so the correct answers should be ${0x0} and @$foo instead of @$foo and &$variable - which causes an error.
Example 4:
Question #6 [HTTP Cache] Which HTTP headers belongs to validation cache model?
This question IS multiple choice.
[0] ETag
[1] Cache-Control
[2] Cookie
[3] Expires
[4] Last-Modified
Accepted answers are: ETag, Last-Modified
I'm not sure what the "validation cache model" is - but if it is a method of controlling browser caching - then Cache-Control and Expires should probably be there as well. If it means "methods of validating the cache" then Expires is a probable candidate. Again - I might be wrong on this - but it's very "tricky" question...
Think 4 is enough to get your opinion on things.
Cheers
KP
First of all, thanks for this wonderful resource!
I am currently learning also using this book: https://leanpub.com/symfony-selfstudy
There are some questions and topics in there, that are not covered by this pack.
Because of all the copyright stuff and other unclear things i want to know:
How to to add more questions to this pack?
Simply copying from the book might be not a good idea :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.