/** * Wrap the add method and do not register commands which are unsupported by * the current transport. * * {@inheritDoc} */ public function add(Command $command) { if ($command instanceof ContainerAwareInterface) { $command->setContainer($this->container); } if ($command instanceof BasePhpcrCommand) { if ($this->showUnsupported || $command->isSupported()) { parent::add($command); } } else { parent::add($command); } }