Rewind โช Symfony Fundamentals #13
Environment variables let us set config (like db connection info) by machine (e.g. local vs prod). Setting "real" env vars can be tricky, so we use a .env file instead. Let's look at this and inject these important values into a service ๐ง
https://t.co/dbGLhwLp0E
Rewind โช Symfony Fundamentals #12
Most services (the most commonly needed) are autowireable. But there are hundreds more that arenโt! Can we use those? Heck yea! And my favorite way is via a trick we already learned: the #[Autowire] attribute!
https://t.co/2EXMqi7mja
๐งช Symfony End-to-End Testing #2
Unit, integration or feature test: which one should you write? Letโs sort out the difference, then generate our first feature test with WebTestCase and make real requests to our homepage, all without a browser! https://t.co/WloPEY62hp
๐จ New Course ๐จ
๐งช Symfony End-to-End Testing #1
Want tests that click, fill forms and submit just like your users do? Letโs install Symfonyโs testing pack and get PHPUnit ready for writing feature tests! https://t.co/hNoLNnSYHk
Rewind โช Symfony Fundamentals #11
Parameters can't be autowired out of the box. That makes sense and that's ok! Let's look at two ways we can inject them into our services: the fancy #[Autowire] PHP attribute and parameter binding.
https://t.co/PFhRCaWscd
๐ Our Black Friday sale is still here for Cyber Monday!
Get 40% OFF SymfonyCasts (yes, even if youโre already subscribed).
Go learn something awesome!
https://t.co/dSgcsN0zxj
๐ This is our ONE sale of the entire year!
Get 40% OFF SymfonyCasts (yes, even if youโre already subscribed).
Go learn something awesome!
https://t.co/dSgcsN0zxj
The work behind creating a SymfonyCasts course helps improve Symfony. During the creation of our Symfony 8.2 security tutorial we came across a few work arounds that turned into merged pull requests improving your dev experience! See how: https://t.co/m0ODxpGe1m
Rewind โช Symfony Fundamentals #10
In addition to services, the service container also holds "parameters". These are simple variables that can also be injected into your services. A great way to store configuration! #Symfony
https://t.co/gcN7yTgDZO
Symfony has 3 rate limiter policies:
๐ ๐ช fixed_window
๐ ๐ช sliding_window
๐ง ๐ชฃ token_bucket
They all limit traffic, but each handles it a bit differently.
See how each one works ๐ https://t.co/cbXabtquLq
Happy Monday! This is going to be an awesome week - we've got #SymfonyCon Warsaw and our once a year 40% sale both starting this Thursday! Hope to see you at both ๐
https://t.co/dSgcsN0zxj
Rewind โช Symfony Fundamentals #9
How do we create our own service? Surprise, we already have and it was auto-registered! Let's see how this works and why we didn't even know ๐
https://t.co/90JayUCtC4
๐ Symfony 8.2 Security Upgrades #6
Tired of defining a one-off rate limiter in config, then wiring it into your controller? Letโs use Symfony 8.2's new rate limiter builder to create it right where itโs used and delete that YAML for good ๐งน https://t.co/mo4UBhl6PW
Rewind โช Symfony Fundamentals #8
Let's switch our local environment from dev to prod and see what's different. In our prod environment, we'll have our cache service use a proper filesystem adapter instead of the fake one we're using in development. #Symfony
https://t.co/lL8vIJ7PQ2
๐ Symfony 8.2 Security Upgrades #5
Symfony 8.2 has โtrueโ sudo mode: re-enter your password if you havenโt in a while! Letโs put it on our admin area, and squash a sneaky voter bug along the way ๐ https://t.co/afvE49TPZu
Rewind โช Symfony Fundamentals #7
Environments allow our services to be instantiated differently based on the current "scenario" our app is in (dev, test, prod). Let's look at a couple ways we can adjust our service configuration in different environments!
https://t.co/psZoBRVcUn