deblan.tv/vendor/trinity/src/Trinity/Bundle/ContentManagerBundle/Routing/Cache.php
2015-03-02 21:57:49 +01:00

24 lines
532 B
PHP

<?php
namespace Trinity\Bundle\ContentManagerBundle\Routing;
class Cache
{
protected $routeur;
public function __construct($kernel)
{
$this->kernel = $kernel;
}
public function clearRouting()
{
$application = new \Symfony\Bundle\FrameworkBundle\Console\Application($this->kernel);
$application->setAutoExit(false);
$options = array('command' => 'cache:clear-routing');
return $application->run(new \Symfony\Component\Console\Input\ArrayInput($options));
}
}