$options =
['allowModifications' =>
$options];
} if (isset($options['allowModifications'
])) { $this->_allowModifications =
(bool) $options['allowModifications'
];
} if (isset($options['adapter'
]) &&
$options['adapter'
] instanceof Enlight_Config_Adapter
) { $this->_adapter =
$options['adapter'
];
} else { $this->_adapter = self::
$_defaultAdapter;
} if (isset($options['section'
])) { $this->
setSection($options['section'
]);
} if (isset($options['extends'
])) { $this->
setExtends($options['extends'
]);
} if (\
is_array($config)) { $this->
setData($config);
} elseif ($config !== null
) { $this->
setName($config);
} else { throw new Enlight_Config_Exception('Please specify configuration data'
);
} }