public function addDependency(string $dependencyName): self
    {
        if (!property_exists($this->loadInfos, 'require')) {
            $this->loadInfos->require = [];
        }
        
        if (!is_array($this->loadInfos->require)) {
            $this->loadInfos->require = [$this->loadInfos->require];
        }
        
        $this->loadInfos->require[] = $dependencyName;
        
        return $this;
    }
public function addDependency(string $dependencyName): self
    {
        if (!property_exists($this->loadInfos, 'require')) {
            $this->loadInfos->require = [];
        }
        
        if (!is_array($this->loadInfos->require)) {
            $this->loadInfos->require = [$this->loadInfos->require];
        }
        
        $this->loadInfos->require[] = $dependencyName;
        
        return $this;
    }
public function addDependency ( string $ dependencyName ) : self { if ( ! property_exists ( $ this -> loadInfos , 'require' ) ) { $ this -> loadInfos -> require = [ ] ; } if ( ! is_array ( $ this -> loadInfos -> require ) ) { $ this -> loadInfos -> require = [ $ this -> loadInfos -> require ] ; } $ this -> loadInfos -> require [ ] = $ dependencyName ; return $ this ; }
Add a dependency to the module
Used for needMe property in module infos

@param string $dependencyName The dependency name to add

@return $this
Add a dependency to the module Used for needMe property in module infos