Add a single dependency handler.

@since 0.1.0

@param string $dependency The dependency type for which to add a handler.
355801
protected function add_handler( $dependency ) {
		if ( $this->hasConfigKey( $dependency ) ) {
			$handler = $this->hasConfigKey( self::KEY_HANDLERS, $dependency )
				? $this->getConfigKey( self::KEY_HANDLERS, $dependency )
				: $this->get_default_handler( $dependency );
			if ( $handler ) {
				$this->handlers[ $dependency ] = new $handler;
			}
		}
	}
1263189
public function addDependency(Source $source)
    {
        if ($this->parent !== null) {
            $this->parent->addDependency($source);
        }
        $tplId = $source->tplId;
        if ($source->type == 'string' || $source->type == 'base64') {
            $this->property['dependency'][$tplId] = $source->type;
            return;
        }
        $this->property['dependency'][$tplId] = [
            0 => $source->type,
            1 => $source->tplname,
            2 => $source->timestamp,
        ];
    }
1112717
public function addScript($handle, $script, array $dependency = [])
    {
        if (is_null($handle)) {
            $handle = $script;
        }

        $this->package->js($handle, $script, $dependency, true);

        return $this;
    }
846637
public function addDependency(ModuleInterface $depends)
    {
        if ($depends->getFiles() === []) {
            foreach ($depends->getDependencies() as $dependency) {
                $this->addDependency($dependency);
            }

            return $this;
        }

        $this->dependencies[$depends->getName()] = $depends;

        return $this;
    }
874829
public function setDependencies($dependencies)
    {
        if(!is_array($dependencies))
            $dependencies = array($dependencies);

        $this->setProperty('dependencies', $dependencies);

        return $this;
	}
346514
private function InstallDependency(BundleDependency $dependency)
    {
        $bundle = $dependency->BundleName();
        if (array_key_exists($bundle, $this->failedBundles))
        {
            return false;
        }
        $installedVersion = $this->InstalledVersion($bundle);
        $manifest = ClassFinder::Manifest($bundle);
        if (!$installedVersion || version_compare($installedVersion, $manifest->Version()) < 0)
        {
            if (!$this->InstallBundle($bundle))
            {
                return false;
            }
        }
        return true;
    }
809146
protected function injectDependency($propertyName, $dependencyName){
        EnolaContext::getInstance()->app->dependenciesEngine->injectDependency($this,$propertyName,$dependencyName);
    }
1145618
public function registerInteractorDependency($dependencyName, $dependencyValue, $interactorName)
    {
        if (! $this->globalDependencies->has($dependencyName)) {
            $this->interactorDependencies->addDependency($dependencyName, $dependencyValue, $interactorName);
        }
    }
91579
private function processDependencies(&$binding): void
    {
        // Let's use the ReflectionClass object previously generated during binding.
        // If it's not instantiable, then we can do nothing... throw exception.
        if (! $binding['reflector']->isInstantiable()) {
            throw new ContainerException($binding['concrete'].' can not be instantiated.');
        }

        // Get the class constructor and see what we have. If there is no constructor,
        // then return an empty array of dependencies.
        if (! $binding['reflector']->getConstructor()) {
            $binding['dependencies'] = [];

            return;
        }

        // Otherwise get the constructor parameters and resolve them.
        $binding['dependencies'] = $this->resolveParameters($binding['reflector']->getConstructor()->getParameters());
    }
630513
protected function init( $product, $dependency = 'boldgrid/library' ) {
		$this->product = $product;
		$this->dependency = $dependency;
		Option::init();
		$this->libraries = Option::get( 'library' );
		$this->verify();
	}
674019
public void addDependency(String notation, String scope ) {
        Map<String, String> notationMap = Notation.parse(notation);
        Dependency dependency = new Dependency();
        dependency.setGroupId(notationMap.get("groupId"));
        dependency.setArtifactId(notationMap.get("artifactId"));
        dependency.setType(notationMap.get("type"));
        dependency.setVersion(notationMap.get("version"));
        dependency.setScope( scope );
        addDependency(dependency);
    }
429764
function (dependencies, extension) {
            if (dependencies) {
                for (var i = dependencies.length - 1; i >= 0; i--) {
                    this.addDependency(dependencies[i], extension);
                }
            }
        }
1349547
public function addJsMix($filename = 'js/app.js', $dependency = null, $footer = false)
    {
        return $this->addJs($filename, mix($filename), $dependency, $footer);
    }
784276
public function add(Dependency $dependency) : DependencySet
    {
        $clone = clone $this;
        if ($this->contains($dependency)
            || $dependency->count() === 0) {
            return $clone;
        }

        $clone->collection[] = $dependency;
        return $clone;
    }
809939
public function addWeakDependency($value)
    {
        if ($this->weak_dependency === null) {
            $this->weak_dependency = new \Protobuf\ScalarCollection();
        }

        $this->weak_dependency->add($value);
    }
378256
public function mergeDependencies($dependency = [])
    {
        $this->dependencies = array_merge((array) $dependency, (array) $this->getDependencies());
        $this->dependencies = Conversion::arrayObject($this->dependencies);
    }
890032
protected function addSingleRelation(string $relation)
    {
        if (!in_array($relation, $this->singleRelations)) {
            $this->singleRelations[] = $relation;
        }
    }