4. ABSTRACT
• Roadmap
• Create a new symfony project
• Folder structure
• So, what actually is Symfony Flex
• Routing
• First page with twig
• Dependency Injection
• Autowiring
• Tips
- profiler
- bundles
- form
• Analyze a symfony project
8. SO, WHAT ACTUALLY IS
SYMFONY FLEX
•Symfony flex is composer plugin that overrides default behavior of the require,
update, and remove commands.
•Symfony 4 requires Flex by default (line "symfony/flex": "^1.0" in composer.json)
•During package installation it looks for a "recipe" for a given <package_name>
inside https://github.com/symfony/recipes repository
•config/bundles.php
9. Recipes are simple
manifest files with
optional additional files,
which defines how this
particular package
should be installed
12. DEPENDENCY INJECTION
- Dependency injection is a design pattern whose
purpose is to: improve the testability, simplify code
- Composition VS Inheritance
- Autowiring