for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Application;
use Gnutix\StarWarsLibrary\DependencyInjection\Extension as StarWarsLibraryExtension;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Gnutix\Kernel\TwigAwareKernel;
/**
* Application Kernel
*/
class AppKernel extends TwigAwareKernel
{
* {@inheritDoc}
protected function getExtensions()
return array_merge(
parent::getExtensions(),
array(
new StarWarsLibraryExtension
)
);
}
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true)
return new Response(
$this->container->get('twig')->render(
'index.html.twig',
'request' => $request,
'showLanguages' => $request->query->get('show-languages'),