/** * {@inheritDoc} */ public function remove(EntityInterface $entity) { /* @var $entity \PHPMentors\PageflowerBundle\Controller\ReflectionConversationalController */ if (array_key_exists($entity->getClass()->getName(), $this->entities)) { unset($this->entities[$entity->getClass()->getName()]); } }