protected function createApplication()
 {
     $app = new Application();
     $app['debug'] = true;
     $app->register(new AsseticServiceProvider(), ['assetic.read_from' => __DIR__ . '/Resources', 'assetic.write_to' => __DIR__ . '/cache', 'assetic.cache_dir' => __DIR__ . '/cache']);
     $app->boot();
     return $app;
 }