public static function getDependence(FileManager $fileManager)
    {
        if (null === self::$serviceManager) {
            $config = self::findConfigFile($fileManager);

            try {
                self::$serviceManager = Application::init(
                    $fileManager->includeFile($config)
                )->getServiceManager();
            } catch(RuntimeException $e) {
                throw new EnvironnementResolverException($e->getMessage());
            } catch (ExceptionInterface $e) {
                throw new EnvironnementResolverException(
                    sprintf(
                        '%s. Config loaded %s',
                        $e->getMessage(),
                        $config
                    )
                );
            }
        }

        return self::$serviceManager;
    }