PHP Classes

File: execute_example

Recommend this page to a friend!
  Classes of nvb   PHP Service Locator Generator   execute_example   Download  
File: execute_example
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Service Locator Generator
Generate locator classes from configuration files
Author: By
Last change: Update of execute_example
Date: 5 months ago
Size: 501 bytes
 

Contents

Class file image Download
#!/usr/bin/php <?php /** * @author stev leibelt <artodeto@bazzline.net> * @since 2015-02-07 */ $examples = array( 'ArrayConfiguration', 'PropelSchemaXml', 'PropelWithNamespaceSchemaXml' ); $path = __DIR__ . '/example'; if (($argc != 2) || (!in_array($argv[1], $examples))) { echo 'Usage: ' . basename(__FILE__) . ' <' . implode('|', $examples) . '>' . PHP_EOL; exit(1); } $example = $argv[1]; $command = 'php ' . $path . '/' . $example . '/run.php'; passthru($command);