protected function bootstrapContainer()
{
$bootstrapFile = $this->getBootstrap();
$func = function () use($bootstrapFile) {
return require $bootstrapFile;
};
$container = $func();
if (!$container instanceof \ArrayAccess) {
throw new \RuntimeException($bootstrapFile . " must return object of type \\ArrayAccess");
}
return $container;
}