code: public function processCommand($type, ...$arguments)
      {
          $name = array_shift($arguments);
          $template = $this->fetch($type);
          if ($template) {
              $this->addDependency($name, $template);
          } else {
              throw new \Exception('Invalid dependency command.');
          }
      }
docs: {@inheritdoc}