Skip to content

Instantly share code, notes, and snippets.

@weierophinney
Created February 2, 2012 17:32
Show Gist options
  • Save weierophinney/1724766 to your computer and use it in GitHub Desktop.
Save weierophinney/1724766 to your computer and use it in GitHub Desktop.
<?php
return array('di' => array(
'definition' => array('class' => array(
'Zend\Mvc\Controller\PluginLoader' => array(
'__construct' => array(
'map' => array(
'type' => false, // allows scalars and arrays
'required' => false,
),
),
),
'Zend\Mvc\Controller\PluginBroker' => array(
'setClassLoader' => array(
'loader' => array(
'type' => 'Zend\Mvc\Controller\PluginLoader',
'required' => false,
),
),
),
'Zend\Mvc\Controller\ActionController' => array(
'setBroker' => array(
'broker' => array(
'type' => 'Zend\Mvc\Controller\PluginBroker',
'required' => false,
),
),
),
)),
'instance' => array(
'Zend\Mvc\Controller\ActionController' => array('params' => array(
'broker' => 'Zend\Mvc\Controller\PluginBroker',
)),
'Zend\Mvc\Controller\PluginBroker' => array('params' => array(
'loader' => 'Zend\Mvc\Controller\PluginLoader',
)),
'Zend\Mvc\Controller\PluginLoader' => array('params' => array(
'Zend\Mvc\Controller\PluginLoader::__construct:map' => array(
// put your map here...
)
)),
),
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment