Skip to content

Instantly share code, notes, and snippets.

@hakuno
Created June 10, 2019 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakuno/6e3531169a400a36cad73c3d489676f7 to your computer and use it in GitHub Desktop.
Save hakuno/6e3531169a400a36cad73c3d489676f7 to your computer and use it in GitHub Desktop.
Lumen disables putenv
<?php
require_once __DIR__.'/../vendor/autoload.php';
// Look for
// https://github.com/laravel/lumen/pull/132
// PoC
// Illuminate\Support\Env::disablePutenv();
(new Laravel\Lumen\Bootstrap\LoadEnvironmentVariables(
dirname(__DIR__)
))->bootstrap();
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment