protected static function setEnvironmentFilePath(KernelContract $kernel, string $file): bool
    {
        if (\file_exists($kernel->getEnvironmentPath() . \DIRECTORY_SEPARATOR . $file)) {
            $kernel->loadEnvironmentFrom($file);

            return true;
        }

        return false;
    }
protected static function setEnvironmentFilePath(KernelContract $kernel, string $file): bool
    {
        if (\file_exists($kernel->getEnvironmentPath() . \DIRECTORY_SEPARATOR . $file)) {
            $kernel->loadEnvironmentFrom($file);

            return true;
        }

        return false;
    }
protected static function setEnvironmentFilePath ( KernelContract $ kernel , string $ file ) : bool { if ( \ file_exists ( $ kernel -> getEnvironmentPath ( ) . \ DIRECTORY_SEPARATOR . $ file ) ) { $ kernel -> loadEnvironmentFrom ( $ file ) ; return true ; } return false ; }
Load a custom environment file.

@param \Viserio\Component\Contract\Foundation\Kernel $kernel
@param string                                        $file

@return bool
Load a custom environment file .