Интересует вопрос препроцессинга исходного кода проекта используя phing.
Что имеется ввиду
Имеется исходных код вида:
protected function _doImportant() {
#ifdef DEBUG
$this->log("doing important stuff now");
#endif
foreach ($this->import as $moreimportant) {
#ifdef DEBUG
$this->log("as I said, important or $moreimportant");
#endif
}
#ifdef DEBUG
$this->log("finished doing ach so important thing");
#endif
}
После препроцессинга, если имеется/включена директива DEBUG
protected function _doImportant() {
$this->log("doing important stuff now");
foreach ($this->import as $moreimportant) {
$this->log("as I said, important or $moreimportant");
}
$this->log("finished doing ach so important thing");
}
Если нет:
protected function _doImportant() {
foreach ($this->import as $moreimportant) {
}
}