mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 01:03:13 +08:00
Added Laravel's env helper
This commit is contained in:
@@ -25,6 +25,6 @@ class CacheFactory implements FactoryInterface
|
||||
*/
|
||||
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
|
||||
{
|
||||
return getenv('APP_ENV') === 'pro' ? new ApcuCache() : new ArrayCache();
|
||||
return env('APP_ENV', 'dev') === 'pro' ? new ApcuCache() : new ArrayCache();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user