It depends. It's great for quickly bootstrapping smaller projects - like a small API - the types of things you might consider also for Silex. But of course, it can also easily grow into a larger project. The trick with using this for smaller projects is that you need to have a "micro skeleton" that's available to avoid all the setup. The best one I've seen - that uses the new MicroKernelTrait we introduced in Symfony 2.8 - is https://github.com/CawaKhar....
Great tutorial, thanks! 2 small things in the script: "/logs" path is missing the last listing of ".gitignore" file and the code listings sum up the line with one additional line (e.g. 3 lines for the .gitignore file instead of 2).
Thanks Philipp! I think I've got it fixed now - check out the last code block. Was it just that missing /logs line in .gitignore of the last code block, or was there something else wrong too? I wasn't totally sure - but let me know!
9 Comments
Whoh! Its so awesome. Thx for great work!
What kind of projects should use this micro framework?
It depends. It's great for quickly bootstrapping smaller projects - like a small API - the types of things you might consider also for Silex. But of course, it can also easily grow into a larger project. The trick with using this for smaller projects is that you need to have a "micro skeleton" that's available to avoid all the setup. The best one I've seen - that uses the new MicroKernelTrait we introduced in Symfony 2.8 - is https://github.com/CawaKhar....
Let me know your thoughts :)
Hi Guys!
Gr8 tut as always <3
There is small issue during working with this, using latest symfony dependencies, I've mean
Twig_Error_Syntax: Unknown "asset" function in "@Twig/Exception/exception_full.html.twig" at line 4.
Newest dependencies
"require": {
"symfony/symfony": "^3.0",
"sensio/framework-extra-bundle": "^3.0"
}
So inside config.yml there should be added "assets:" key
Best regards!
Great tip! It's also safe (but not required) to add this setting in 2.8 - so that you won't hit this error when you upgrade.
Cheers!
That's awesome. I like to bootstrap my projects like that, it makes so much more sense!
Great tutorial, thanks!
2 small things in the script: "/logs" path is missing the last listing of ".gitignore" file and the code listings sum up the line with one additional line (e.g. 3 lines for the .gitignore file instead of 2).
Thanks Philipp! I think I've got it fixed now - check out the last code block. Was it just that missing /logs line in .gitignore of the last code block, or was there something else wrong too? I wasn't totally sure - but let me know!
It was only this "/logs" line :-)
"Houston: no signs of life"
Start the conversation!