*/ class EnsureNoHotPathPass extends AbstractRecursivePass { protected function processValue($value, $isRoot = false) { if ($value instanceof Definition && null !== ($class = $value->getClass()) && 0 === strpos($class, 'Swift_')) { $value->clearTag('container.hot_path'); } return parent::processValue($value, $isRoot); } }