Skip to content

Commit-by-commit guide, to understand Symfony framework internals

Notifications You must be signed in to change notification settings

kuusas/learn-symfony

Repository files navigation

Build Status Scrutinizer Code Quality

learn-symfony3

How to contribute?

Goal: 1 topic - 1 commit.

  1. Pick topic from topic list.
  2. Create new issue (if nobody created so far). This will prevent us all from doing the same thing.
  3. Write example code to cover the topic.
  4. Add explanatory comments.
  5. Tests, of course.
  6. Update README.md Already done section with link(s) to official Symfony documentation where the topic is explained.
  7. Mark topic as done with + in topic list
  8. Commit. Message should be formatted as Topic: subtopic, for example: Dependency Injection: Factories.
  9. Do Pull Request.

See example commit.

How-tos

How to run tests?

Run $ phpunit in project directory.

Already done

  1. Creating Symfony project using symfony installer CLI tool. http://symfony.com/doc/current/book/installation.html
    $ symfony new learn-symfony
  1. Dependency Injection: factories http://symfony.com/doc/current/components/dependency_injection/factories.html
  2. Bundles: Overriding default error pages http://symfony.com/doc/current/cookbook/controller/error_pages.html
  3. Controllers: The request http://symfony.com/doc/current/book/controller.html#requests-controller-response-lifecycle
  4. Controllers: The response http://symfony.com/doc/current/book/controller.html#the-request-and-response-object
  5. Automated Tests: Request and response objects introspection http://symfony.com/doc/current/book/testing.html. Examples came with #4 and #5 (see above).
  6. Templating with Twig: Controller rendering. Render template without controller http://symfony.com/doc/current/cookbook/templating/render_without_controller.html.
  7. Security: Firewalls. http://symfony.com/doc/current/components/security/firewall.html
  8. Security: Guard authenticators http://symfony.com/doc/current/cookbook/security/guard-authentication.html
  9. Automated Tests: Profile object http://symfony.com/doc/current/cookbook/testing/profiling.html
  10. Forms: Forms creation http://symfony.com/doc/current/book/forms.html
  11. Automated Tests: Framework objects access http://symfony.com/doc/current/book/testing.html#accessing-internal-objects
  12. Templating with Twig: Template includes http://symfony.com/doc/current/book/templating.html#including-templates
  13. Console: Built-in commands http://symfony.com/doc/current/components/console/usage.html#built-in-commands
    $ bin/console list
    $ bin/console # the same
    $ bin/console help
    $ bin/console help list

About

Commit-by-commit guide, to understand Symfony framework internals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published