Overview
Learn how to create console commands using the Symfony framework in this 21-minute tutorial. Explore a realistic ecommerce example as you configure commands, define execution methods, and interact with databases. Discover techniques for locating records, implementing conditional logic, and providing user feedback. Master the process of creating efficient and practical Symfony console commands to enhance your web development skills.
Syllabus
Intro
Housekeeping
Symphony Binary
Create a New Project
Create Command Class
Configure Command
Markup
Steps
Decoder
Defining the Execute Method
Adding a PostgreSQL Database
Creating a Migration
Entity Manager
Locate Records
Find by Item Number
Add IF Conditional
Set Supplier Cost
Refine Supplier Cost
Persistence
User feedback
Outro
Taught by
Gary Clarke