Merge remote branch 'vicb/tweaks_110425'

* vicb/tweaks_110425:
  [AsseticBundle] Remove an unused property
  [Cache warmers] A few tweaks
This commit is contained in:
Fabien Potencier 2011-04-25 20:54:08 +02:00
commit d6bdb7af88
5 changed files with 18 additions and 10 deletions

View File

@ -11,10 +11,15 @@
namespace Symfony\Bundle\AsseticBundle\CacheWarmer; namespace Symfony\Bundle\AsseticBundle\CacheWarmer;
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmer; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
class AssetManagerCacheWarmer extends CacheWarmer /**
* The AssetManagerCacheWarmer warms up the formula loader.
*
* @author Kris Wallsmith <kris.wallsmith@symfony.com>
*/
class AssetManagerCacheWarmer implements CacheWarmerInterface
{ {
private $container; private $container;

View File

@ -12,10 +12,15 @@
namespace Symfony\Bundle\AsseticBundle\CacheWarmer; namespace Symfony\Bundle\AsseticBundle\CacheWarmer;
use Assetic\AssetWriter; use Assetic\AssetWriter;
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmer; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
class AssetWriterCacheWarmer extends CacheWarmer /**
* The AssetWriterCacheWarmer processes and writes the asset files.
*
* @author Kris Wallsmith <kris.wallsmith@symfony.com>
*/
class AssetWriterCacheWarmer implements CacheWarmerInterface
{ {
private $container; private $container;
private $writer; private $writer;

View File

@ -23,11 +23,9 @@ use Symfony\Component\Templating\Loader\LoaderInterface;
class FileResource implements ResourceInterface class FileResource implements ResourceInterface
{ {
protected $loader; protected $loader;
protected $parser;
protected $bundle; protected $bundle;
protected $baseDir; protected $baseDir;
protected $path; protected $path;
protected $template; protected $template;
/** /**

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\FrameworkBundle\CacheWarmer; namespace Symfony\Bundle\FrameworkBundle\CacheWarmer;
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmer; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
use Symfony\Component\Routing\Router; use Symfony\Component\Routing\Router;
/** /**
@ -19,7 +19,7 @@ use Symfony\Component\Routing\Router;
* *
* @author Fabien Potencier <fabien@symfony.com> * @author Fabien Potencier <fabien@symfony.com>
*/ */
class RouterCacheWarmer extends CacheWarmer class RouterCacheWarmer implements CacheWarmerInterface
{ {
protected $router; protected $router;

View File

@ -11,7 +11,7 @@
namespace Symfony\Bundle\TwigBundle\CacheWarmer; namespace Symfony\Bundle\TwigBundle\CacheWarmer;
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmer; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Finder\Finder; use Symfony\Component\Finder\Finder;
@ -23,7 +23,7 @@ use Symfony\Component\Finder\Finder;
* *
* @author Fabien Potencier <fabien@symfony.com> * @author Fabien Potencier <fabien@symfony.com>
*/ */
class TemplateCacheCacheWarmer extends CacheWarmer class TemplateCacheCacheWarmer implements CacheWarmerInterface
{ {
protected $container; protected $container;
protected $parser; protected $parser;