Skip to content

Commit

Permalink
moved WarmableInterface to the HttpKernel component
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 23, 2011
1 parent cb9ac13 commit ad7fcf5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
Expand Up @@ -12,6 +12,7 @@
namespace Symfony\Bundle\FrameworkBundle\CacheWarmer;

use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
use Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface;
use Symfony\Component\Routing\RouterInterface;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/FrameworkBundle/Routing/Router.php
Expand Up @@ -15,7 +15,7 @@
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Bundle\FrameworkBundle\CacheWarmer\WarmableInterface;
use Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface;

/**
* This Router only creates the Loader only when the cache is empty.
Expand Down
Expand Up @@ -15,15 +15,8 @@
*
* @author Fabien Potencier <fabien@symfony.com>
*/
interface CacheWarmerInterface
interface CacheWarmerInterface extends WarmableInterface
{
/**
* Warms up the cache.
*
* @param string $cacheDir The cache directory
*/
function warmUp($cacheDir);

/**
* Checks whether this warmer is optional or not.
*
Expand Down
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

namespace Symfony\Bundle\FrameworkBundle\CacheWarmer;
namespace Symfony\Component\HttpKernel\CacheWarmer;

/**
* Interface for services that support warming their cache.
* Interface for classes that support warming their cache.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
Expand Down

0 comments on commit ad7fcf5

Please sign in to comment.