protected function getDependencies(array $identifiers): array
    {
        $dependencies = [];

        foreach ($identifiers as $index => $identifier) {
            $dependencies[$index] = !$identifier->optional || $this->container->has($identifier->key)
                ? $this->container->get($identifier->key)
                : null;
        };

        return $dependencies;
    }
protected function getDependencies(array $identifiers): array
    {
        $dependencies = [];

        foreach ($identifiers as $index => $identifier) {
            $dependencies[$index] = !$identifier->optional || $this->container->has($identifier->key)
                ? $this->container->get($identifier->key)
                : null;
        };

        return $dependencies;
    }
protected function getDependencies ( array $ identifiers ) : array { $ dependencies = [ ] ; foreach ( $ identifiers as $ index => $ identifier ) { $ dependencies [ $ index ] = ! $ identifier -> optional || $ this -> container -> has ( $ identifier -> key ) ? $ this -> container -> get ( $ identifier -> key ) : null ; } ; return $ dependencies ; }
Get dependencies from the container

@param object[] $identifiers
@return array
Get dependencies from the container