for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cmobi\RabbitmqBundle\Routing\CacheWarmer;
use Cmobi\RabbitmqBundle\Routing\MethodRouter;
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
use Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface;
class MethodRouterCacheWarmer implements CacheWarmerInterface
{
protected $router;
public function __construct(MethodRouter $router)
$this->router = $router;
}
public function warmUp($cacheDir)
if ($this->router instanceof WarmableInterface) {
$this->router->warmUp($cacheDir);
public function isOptional()
return true;