src/Factory.php
private static function destroyServiceOrModel(
        array &$aTrackerArray,
        string $sKey,
        string $sName = null,
        string $sComponent = null
    ): bool {
        if (!$sKey) {
            $sKey = md5($sComponent . $sName);
        }

        if (array_key_exists($sKey, $aTrackerArray)) {
            unset($aTrackerArray[$sKey]);
            return true;
        } else {
            return false;
        }
    }
private static function destroyServiceOrModel(
        array &$aTrackerArray,
        string $sKey,
        string $sName = null,
        string $sComponent = null
    ): bool {
        if (!$sKey) {
            $sKey = md5($sComponent . $sName);
        }

        if (array_key_exists($sKey, $aTrackerArray)) {
            unset($aTrackerArray[$sKey]);
            return true;
        } else {
            return false;
        }
    }
private static function destroyServiceOrModel ( array & $ aTrackerArray , string $ sKey , string $ sName = null , string $ sComponent = null ) : bool { if ( ! $ sKey ) { $ sKey = md5 ( $ sComponent . $ sName ) ; } if ( array_key_exists ( $ sKey , $ aTrackerArray ) ) { unset ( $ aTrackerArray [ $ sKey ] ) ; return true ; } else { return false ; } }
Destroys an item in the tracker array

@param array  $aTrackerArray The tracker array to destroy from
@param string $sKey          The key to destroy, if known
@param string $sName         The name of the item being destroyed, used to generate the key
@param string $sComponent    The name of the component which provides the item, used to generate the key

@return bool
Destroys an item in the tracker array