This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
'di' => array( | |
'definition' => array( | |
'class' => array( | |
'Zend\Cache\StorageFactory' => array( | |
'methods' => array( | |
'factory' => array( | |
'cfg' => array( | |
'required' => true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<target name="createbuilddir"> | |
<php expression="substr(md5(microtime(true)), 0, 1)" returnProperty="uniquestamp" /> | |
<property name="build.dir" value="${build.tmp}/phing_build_${uniquestamp}" override="true" /> | |
<echo msg="Testing tmp dir ${build.dir}" /> | |
<if> | |
<available file="${build.dir}" type="dir" value="Yes"/> | |
<then> | |
<phingcall target="createbuilddir"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
'di' => array( | |
'definition' => array( | |
'class' => array( | |
'PhingBundle\Configuration' => array( | |
'methods' => array( | |
'setRunnerDefaults' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bootstrap file | |
<?php | |
require_once __DIR__ . '/../autoload_register.php'; | |
$rootPath = realpath(dirname(__DIR__)); | |
$testsPath = "$rootPath/tests"; | |
if (is_readable($testsPath . '/TestConfiguration.php')) { | |
require_once $testsPath . '/TestConfiguration.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Could the event manager handle this better? I would want the lazy behavior without typing as much... | |
$events = StaticEventManager::getInstance(); | |
// obvious method (Application\Service\StoreService is instanciated even when the event has not been triggered) | |
$events->attach('Application\Controller\PaypalController', 'transaction.completed', array($locator->get('Application\Service\StoreService'), 'processTransaction'), 100); | |
// lazy method (Application\Service\StoreService is instanciated when the event has been triggered) | |
$events->attach('Application\Controller\PaypalController', 'transaction.completed', function($e) use ($locator) { | |
$service = $locator->get('Application\Service\StoreService'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
'di' => array( | |
'definition' => array( | |
'class' => array( | |
'Zend\Log\Logger' => array( | |
'addWriter' => array( | |
'writer' => array('required' => true), | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Global Configuration Override | |
* | |
* You can use this file for overridding configuration values from modules, etc. | |
* You would place values in here that are agnostic to the environment and not | |
* sensitive to security. | |
* | |
* @NOTE: In practice, this file will typically be INCLUDED in your source | |
* control, so do not include passwords or other sensitive information in this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "PhingService", | |
"description": "Zend Framework 2 module for Phing, a PHP project build system or build tool based on Apache Ant.", | |
"authors": [ | |
{ | |
"name": "Bas Kamer", | |
"email": "[email protected]" | |
} | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PROJECT THAT DEFINES BIN FILE | |
{ | |
"name": "phing/phing", | |
"description": "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.", | |
"keywords": ["build", "tool", "task"], | |
"homepage": "http://www.phing.info/", | |
"license": "LGPL3", | |
"authors": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suppose this app is installed with composer and it has a dependancy on a module known to composer as 'vendor/moduleName'. | |
Would this work? | |
return array( | |
'modules' => array( | |
'Application', | |
'vendor/moduleName', | |
), | |
'module_listener_options' => array( | |
'config_glob_paths' => array( |
OlderNewer