Skip to content

Instantly share code, notes, and snippets.

@shrink0r
Created October 30, 2012 21:59
Show Gist options
  • Save shrink0r/3983337 to your computer and use it in GitHub Desktop.
Save shrink0r/3983337 to your computer and use it in GitHub Desktop.
Shows how I ran into some trouble while trying to generate api doc for some project classes that extend phing.
<?php
/*
Here is the error I get when removing the @ error-supressor in ClassNode line 333:
Storing structure.xml in "/home/vagrant/projects/honeybee/etc/integration/docs/serverside/structure.xml" .. OK
Initializing transformer .. OK
Processing behaviours ..
Warning: require_once(phing/ProjectComponent.php): failed to open stream: No such file or directory in /home/vagrant/projects/honeybee/vendor/phing/phing/classes/phing/Task.php on line 22
Fatal error: require_once(): Failed opening required 'phing/ProjectComponent.php' (include_path='/home/vagrant/projects/honeybee/vendor/phpunit/php-token-stream/:/home/vagrant/projects/honeybee/vendor/phpunit/php-text-template/:/home/vagrant/projects/honeybee/vendor/phpunit/phpunit-mock-objects/:/home/vagrant/projects/honeybee/vendor/phpunit/php-timer/:/home/vagrant/projects/honeybee/vendor/phpunit/php-file-iterator/:/home/vagrant/projects/honeybee/vendor/phpunit/phpunit/:/home/vagrant/projects/honeybee/vendor/phpunit/phpunit/../../symfony/yaml:/home/vagrant/projects/honeybee/vendor/phpunit/php-code-coverage/:.:/usr/share/php:/usr/share/pear') in /home/vagrant/projects/honeybee/vendor/phing/phing/classes/phing/Task.php on line 22
*/
/*
* In my project I have a phing task that extends the Phing/Task class.
* The phing Task class uses a require that fails, thereby causing a fatal error.
*/
class ProjectPhingTask extends Task
{
}
/* Phing/Task file code excerpt. */
require_once 'phing/ProjectComponent.php';
include_once 'phing/RuntimeConfigurable.php';
/**
* The base class for all Tasks.
*
* Use {@link Project#createTask} to register a new Task.
*
* @author Andreas Aderhold <andi@binarycloud.com>
* @copyright 2001,2002 THYRELL. All rights reserved
* @version $Id: 2403be59323266752e1cf7e28919f3f5a868f29f $
* @see Project#createTask()
* @package phing
*/
abstract class Task extends ProjectComponent {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment