/**
* Returns a real Bundle config object, which is being read from the configurations
* files without bootstrap. So this configuration does not contain any changes from
* autoCrud, object-attributes, field modifications and other configuration manipulations from the bootstrap.
*
* When no configurations are found, it returns a completely new Jarves\Configuration\Bundle object.
*
* @param string $bundleName
* @return Bundle
*/
public function getRealConfig($bundleName)
{
$configs = new Configs($this);
$configs->loadBundles([$bundleName]);
$config = $configs->getConfig($bundleName);
if (!$config) {
$bundle = $this->getBundle($bundleName);
return new Bundle($bundle, $this, null);
}
return $config;
}