Service/ServiceFactory.php
public function getFactorableInstance(string $factorableClassName)
    {
        $factorable = $this->loadFromRegistry($factorableClassName);

        if (!$factorable instanceof AbstractService) {
            $factorable = parent::getFactorableInstance($factorableClassName);
        }

        return $factorable;
    }
public function getFactorableInstance(string $factorableClassName)
    {
        $factorable = $this->loadFromRegistry($factorableClassName);

        if (!$factorable instanceof AbstractService) {
            $factorable = parent::getFactorableInstance($factorableClassName);
        }

        return $factorable;
    }
public function getFactorableInstance ( string $ factorableClassName ) { $ factorable = $ this -> loadFromRegistry ( $ factorableClassName ) ; if ( ! $ factorable instanceof AbstractService ) { $ factorable = parent :: getFactorableInstance ( $ factorableClassName ) ; } return $ factorable ; }
Gets a service

@param string $factorableClassName

@return AbstractService
Gets a service