Code Monkey home page Code Monkey logo

symfony-pack's People

Contributors

20uf avatar a-ast avatar a-menshchikov avatar alexandre-castelain avatar alxvgt avatar cmen avatar fredericbarthelet avatar h4cc avatar ismail1432 avatar janmaennig avatar jverdeyen avatar l-vo avatar leprechaunz avatar lex111 avatar lolautruche avatar maksslesarenko avatar mazeikis avatar mickaelandrieu avatar nicosomb avatar oktapodia avatar pgrimaud avatar pierstoval avatar raulconti avatar robertfausk avatar robwasripped avatar rodrigobb avatar scaule avatar seblours avatar supertanuki avatar velikanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

symfony-pack's Issues

Twig path() question

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)

Answer on a question not so clear

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?

Document all PSRs

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 ? :)

New release

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 Certification Questions

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.

Errors during yaml files parsing

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}").  
                                                                                                                                                                  ``` 

Validity of some questions.

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

How to add more questions?

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.