Symfony\Cmf\Bundle\RoutingBundle\Model\Route::compile PHP Method

compile() public method

Overwritten to make sure the route is recompiled if the pattern was changed
public compile ( )
    public function compile()
    {
        if ($this->needRecompile) {
            // calling parent::setPath just to let it set compiled=null. the parent $path field is never used
            parent::setPath($this->getPath());
        }
        return parent::compile();
    }