symfony/AsseticBundle — Issue #58: Call to a member function getContent() on a non-object
Author: aerialls
Created: 2012-01-23 21:41:45+00:00
State: open

Hi!

Looks like i have found an issue with AsseticBundle (related with https://github.com/kriswallsmith/assetic/issues/128). Indeed; in my Symfony2 project I have templates with `.mobile` for a mobile layout (e.g. `article.mobile.html.twig`). But with `assetic` and `AsseticBundle` in master :

```
Fatal error: Call to a member function getContent() on a non-object in
symfony\assetic-bundle\Symfony\Bundle\AsseticBundle\Factory\Resource\FileResource.php
on line 54
```

It's related with this regex no ? https://github.com/symfony/AsseticBundle/blob/master/DependencyInjection/DirectoryResourceDefinition.php#L71

Thanks :)