123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
-
-
-
- namespace Symfony\Bundle\AsseticBundle\CacheWarmer;
-
- use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
- use Symfony\Component\DependencyInjection\ContainerInterface;
-
-
- class AssetManagerCacheWarmer implements CacheWarmerInterface
- {
- private $container;
-
- public function __construct(ContainerInterface $container)
- {
- $this->container = $container;
- }
-
- public function warmUp($cacheDir)
- {
- $am = $this->container->get('assetic.asset_manager');
- $am->load();
- }
-
- public function isOptional()
- {
- return true;
- }
- }
|