/** * Handles the "bind --enable" command. * * @param Args $args The console arguments. * * @return int The status code. */ public function handleEnable(Args $args) { $bindingToEnable = $this->getBindingByUuidPrefix($args->getArgument('uuid')); if ($bindingToEnable->getContainingPackage() instanceof RootPackage) { throw new RuntimeException(sprintf('Cannot enable bindings in the package "%s".', $bindingToEnable->getContainingPackage()->getName())); } $this->discoveryManager->enableBinding($bindingToEnable->getUuid()); return 0; }