Настройки «Definitions» и «InstanceManager» можно выносить в отдельный файл. Этот файл должен возвращать массив и быть итерируемым.
В массиве должно быть два верхних, основных ключа: «definition» и «instance». Отвечающие за соответствующие настройки.
Секция «definition» имеет следующий вид:
$config = array( 'definition' => array( 'compiler' => array(/* @todo compiler information */), 'runtime' => array(/* @todo runtime information */), 'class' => array( 'instantiator' => '', // the name of the instantiator, by default this is __construct 'supertypes' => array(), // an array of supertypes the class implements 'methods' => array( 'setSomeParameter' => array( // a method name 'parameterName' => array( 'name', // string parameter name 'type', // type or null 'is-required' // bool ) ) ) ) ) );