PHP Classes

File: generate_api

Recommend this page to a friend!
  Classes of nvb   PHP Service Locator Generator   generate_api   Download  
File: generate_api
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 generate_api
Date: 5 months ago
Size: 752 bytes
 

Contents

Class file image Download
#!/usr/bin/php <?php /** * @author stev leibelt <artodeto@bazzline.net> * @since 2015-02-07 */ if ($argc != 2) { echo 'Usage: ' . basename(__FILE__) . ' <path to apigen>' . PHP_EOL; exit(1); } $pathToApiGen = $argv[1]; if (!is_readable($pathToApiGen)) { echo 'path to apigen "' . $pathToApiGen . ' is not readable' . PHP_EOL; exit(1); } $path = __DIR__; //delete $command = 'rm -fr ' . $path . '/document/*'; passthru($command); //generate $options = array( '--source ' . $path . '/source/Net/Bazzline/Component/Locator/', '--destination ' . $path . '/document/', '--title "Zend Framework Console Helper by Bazzline"' ); $command = 'php ' . $pathToApiGen . ' generate ' . implode(' ', $options); passthru($command);