protected static function autoloadFile(SplFileInfo $file)
    {
        $yml = Yaml::parse(file_get_contents($file->getRealPath()), true);

        $service = Arr::get($yml, 'micro-service');
        if (is_null($service)) {
            return;
        }

        sbox()->add(new MicroService($service, $yml));
    }
protected static function autoloadFile(SplFileInfo $file)
    {
        $yml = Yaml::parse(file_get_contents($file->getRealPath()), true);

        $service = Arr::get($yml, 'micro-service');
        if (is_null($service)) {
            return;
        }

        sbox()->add(new MicroService($service, $yml));
    }
protected static function autoloadFile ( SplFileInfo $ file ) { $ yml = Yaml :: parse ( file_get_contents ( $ file -> getRealPath ( ) ) , true ) ; $ service = Arr :: get ( $ yml , 'micro-service' ) ; if ( is_null ( $ service ) ) { return ; } sbox ( ) -> add ( new MicroService ( $ service , $ yml ) ) ; }
Carregar arquivo.
@param SplFileInfo $file
@return void
Carregar arquivo .