-
Notifications
You must be signed in to change notification settings - Fork 23
StubGenerator
To slightly simplify the stub generating process, the Herrera\Box\StubGenerator class was created.
Sets the alias to be used in phar:// URLs.
This value is used with either Phar::mapPhar() or Phar::webPhar().
Creates a new instance of the stub generator.
<?php $generator = StubGenerator::create();Sets location within the Phar of index script.
- If using
Phar::webPhar(), this value will be passed to that method. - If not using
Phar::webPhar(), the script will berequire()'d at the end of the stub.
Use the Phar::interceptFileFuncs() method in the stub?
Generates the stub.
Sets the map for file extensions and their mimetypes.
This value is requires the use of Phar::webServer().
Sets the list of server variables to modify.
This value is passed to Phar::mungServer().
Sets the location of the script to run when a file is not found.
This value is requires the use of Phar::webServer().
Sets the rewrite function name, since Closures cannot be converted to strings.
This value is requires the use of Phar::webServer().
Use Phar::webPhar() instead of Phar::mapPhar()?