-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerator.php
More file actions
22 lines (18 loc) · 750 Bytes
/
generator.php
File metadata and controls
22 lines (18 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath('./library'),
get_include_path(),
)));
// Initialise autoloader and append App_ namespases
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('App_');
$generator = new App_CodeGenerator_PhpDoc_File(array(
'classes' => array('Zend_Application_Bootstrap_Bootstrap', 'Zend_Application_Module_Autoloader'),
'filename' => 'Zend_Application',
));
$generator->write();