mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
pre-release changes
This commit is contained in:
@@ -20,6 +20,8 @@ class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
$this->loadConfigurationFile();
|
||||
|
||||
$this->setMemoryLimit();
|
||||
|
||||
$this->app->singleton(LoopInterface::class, function () {
|
||||
return LoopFactory::create();
|
||||
});
|
||||
@@ -53,4 +55,9 @@ class AppServiceProvider extends ServiceProvider
|
||||
config()->set('expose', array_merge($builtInConfig, $globalConfig));
|
||||
}
|
||||
}
|
||||
|
||||
protected function setMemoryLimit()
|
||||
{
|
||||
ini_set('memory_limit', config()->get('expose.memory_limit', '128M'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user