dev-master
9999999-dev
The Requires
The Development Requires
Integrate Silex into symfony2 full stack (with the exception of pimple/service providers, but we have bundles instead :D)., (*1)
My experience of silex is that it's very quick to write a few controllers, and have a website working. However I always end up missing the configuration layer of symfony full stack. I also quickly start to miss the popular symfony bundles., (*2)
The idea here is to define your controllers like in a silex application (fast prototyping), while keeping the full stack advantages., (*3)
For example, you could write an api with the silex api while still being able to leverage the FOSRestBundle features., (*4)
adrienbrault/SilexBundle 0.1.*@dev
AdrienBrault\SilexBundle\SilexBundle
to your AppKernelrouting.yml
:silex: resource: . type: silex
silex: files: - "%kernel.root_dir%/../src/controllers.php"
<?php // src/controllers.php $app->get('/', function () { return 'Hello!'; }); $app->get('/wow/{name}', function ($name) use ($app) { return $app['twig']->render('wow.html.twig', array( 'name' => $name, )); });