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);
        }
    }
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);
        }
    }
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 ) ; } }
Wrap the add method and do not register commands which are unsupported by
the current transport.

{@inheritdoc}
Wrap the add method and do not register commands which are unsupported by the current transport .