Skip to content

Instantly share code, notes, and snippets.

@basz
Created March 28, 2012 14:29
Show Gist options
  • Save basz/2226624 to your computer and use it in GitHub Desktop.
Save basz/2226624 to your computer and use it in GitHub Desktop.
a threesome
<?php
return array(
'di' => array(
'definition' => array(
'class' => array(
'PhingBundle\Configuration' => array(
'methods' => array(
'setRunnerDefaults' => array(
'runner-configuration' => array(
'type' => 'PhingBundle\RunnerConfiguration',
'required' => true
)
)
),
)
),
),
'instance' => array(
'alias' => array(
'phing-service' => 'PhingBundle\Service',
'service-configuration' => 'PhingBundle\Configuration',
'runner-configuration' => 'PhingBundle\RunnerConfiguration'
),
'phing-service' => array(
'parameters' => array(
'configuration' => 'service-configuration'
),
),
'service-configuration' => array(
'parameters' => array(
'config' => array(
'phpBin' => null, /* will attempt auto-detection via exec 'which php' */
'phingPath' => 'vendor/phing',
),
'runnerDefaults' => array(
'runner-configuration'
)
),
),
'runner-configuration' => array(
'parameters' => array(
'config' => array(
'logger' => 'phing.listener.NoBannerLogger'
),
),
),
// Setup for router and routes
'Zend\Mvc\Router\RouteStack' => array(
'parameters' => array(
'routes' => array(
'phingbundle-do-build' => array(
'type' => 'Zend\Mvc\Router\Http\Literal',
'options' => array(
'route' => '/phingbundle',
'defaults' => array(
'controller' => 'PhingBundle\Controller\IndexController',
'action' => 'index',
),
),
),
),
),
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment