24 lines
532 B
PHP
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));
|
|
}
|
|
}
|