src/Container.php
public function getAliases() {
        $result = [];

        foreach ($this->rules as $name => $rule) {
            if (!empty($rule['aliasOf']) && $rule['aliasOf'] === $this->currentRuleName) {
                $result[] = $name;
            }
        }

        return $result;
    }
public function getAliases() {
        $result = [];

        foreach ($this->rules as $name => $rule) {
            if (!empty($rule['aliasOf']) && $rule['aliasOf'] === $this->currentRuleName) {
                $result[] = $name;
            }
        }

        return $result;
    }
public function getAliases ( ) { $ result = [ ] ; foreach ( $ this -> rules as $ name => $ rule ) { if ( ! empty ( $ rule [ 'aliasOf' ] ) && $ rule [ 'aliasOf' ] === $ this -> currentRuleName ) { $ result [ ] = $ name ; } } return $ result ; }
Get all of the aliases of the current rule.

This method is intended to aid in debugging and should not be used in production as it walks the entire rule array.

@return array Returns an array of strings representing aliases.
Get all of the aliases of the current rule .