CHAPTER 15 ■ AN INTRODUCTION TO PEAR AND PYRUS
I have included a new element in this fragment. The tasks:replace element causes the PEAR
installer to search the file for the trigger string given in the from attribute, replacing it with the pear-
config setting in the to attribute. So the Dialekt.php file, for example, might start out looking like this:
<?php
/*
- Use this from PHP scripts, for a CLI implementation use
- @bin_dir@/dialekt
*/
class Dialekt {
const DIALEKT_ALIG=1;
const DIALEKT_DALEK=2;
//...
}
After installation, the same class comment should look something like this:
/*
- Use this from PHP scripts, for a CLI implementation use
- /home/mattz/php/bin/dialekt
*/