When a player loses a battle, it would be cool to try the last action again. The command pattern makes it easy to implement undo functionality, let's add this! #CtrlZYourMistakes
SymfonyCasts
E-Learning Providers
Grand Rapids, Michigan 1,776 followers
Learn Symfony & PHP faster and build something amazing!
About us
Simply the Best PHP & Symfony Tutorials
- Website
-
https://symfonycasts.com
External link for SymfonyCasts
- Industry
- E-Learning Providers
- Company size
- 2-10 employees
- Headquarters
- Grand Rapids, Michigan
- Type
- Privately Held
- Founded
- 2011
- Specialties
- Symfony, PHP, JavaScript, and Object Oriented
Locations
-
Primary
77 Monroe Center St NW
Ste 600
Grand Rapids, Michigan 49503, US
Employees at SymfonyCasts
Updates
-
What’s the importance of the defer script attribute? We'll take a look! Plus a way to disable Turbo drive everywhere or just for some parts of your site… which can be a great trick while migrating!
The "defer" Attribute & Conditionally Activating Turbo
symfonycasts.com
-
Turbo Drive instantly removes full page refreshes with zero backend changes. Let’s look at how Turbo is activated & how it smartly merges the new
for each page to make the magic happen #Symfony https://buff.ly/3fLKKVJ -
Now that we’ve refactored our game to use the command pattern for actions, we are going to need…. more actions! Let’s get this mage archer battle going!
Implementing More Actions
symfonycasts.com
-
Now that we’ve refactored our game to use the command pattern for actions, we are going to need…. more actions! Let’s get this mage archer battle going!
Implementing More Actions
symfonycasts.com
-
We need to make our game more interactive. Attack is currently the only action… lame! What about healing yourself? To add more actions, let's first refactor to utilize the command pattern
Adding Actions to the Game
symfonycasts.com
-
Time for a design pattern that I think is… just fun! The command pattern: a way to encapsulate some action into a standalone class… which you can then execute from anywhere! Bonus: this pattern can even give you “undo” abilities.
Command Pattern
symfonycasts.com
-
Design Patterns are back... with a vengeance! Let's continue building the "greatest command-line role-playing game ever" by applying 5 new patterns.
Introduction
symfonycasts.com
-
Autoconfiguration is one of my favorite Symfony features: create a service, implement an interface (or use an #[Attribute]) and boom! Your service just got integrated into part of Symfony itself. Let's try this by creating a Twig extension.
Autoconfiguration
symfonycasts.com
-
Imagine sending this JSON to an API Platform app: { "name": "Ryan", "company": "/api/companies/5" } The string “Ryan” is set onto a name property. But the string “/api/companies/5"... becomes a Company object. Let’s chat about how that happens.
Writable Relation Fields
symfonycasts.com