mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
createDefaultWebStub doesnt exist (doc #54475)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310657 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1bdcb1b9fd
commit
710b0415e9
3 changed files with 7 additions and 7 deletions
|
@ -83,12 +83,12 @@
|
|||
$phar = new Phar('project.phar', 0, 'project.phar');
|
||||
// add all files in the project
|
||||
$phar->buildFromDirectory(dirname(__FILE__) . '/project');
|
||||
$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php'));
|
||||
$phar->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php'));
|
||||
|
||||
$phar2 = new Phar('project2.phar', 0, 'project2.phar');
|
||||
// add all files in the project, only include php files
|
||||
$phar->buildFromDirectory(dirname(__FILE__) . '/project', '/\.php$/');
|
||||
$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php'));
|
||||
$phar2->buildFromDirectory(dirname(__FILE__) . '/project', '/\.php$/');
|
||||
$phar2->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php'));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -99,7 +99,7 @@ $phar->buildFromIterator(
|
|||
new RecursiveIteratorIterator(
|
||||
new RecursiveDirectoryIterator('/path/to/project')),
|
||||
'/path/to/project');
|
||||
$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php'));
|
||||
$phar->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php'));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -124,7 +124,7 @@ $phar->buildFromIterator(
|
|||
new RecursiveIteratorIterator(
|
||||
new Phar('/path/to/anotherphar.phar')),
|
||||
'phar:///path/to/anotherphar.phar/path/to/project');
|
||||
$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php'));
|
||||
$phar->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php'));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -148,7 +148,7 @@ $phar->buildFromIterator(
|
|||
'internal/file.php' => dirname(__FILE__) . '/somefile.php',
|
||||
'another/file.jpg' => fopen('/path/to/bigfile.jpg', 'rb'),
|
||||
)));
|
||||
$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php'));
|
||||
$phar->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php'));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -84,7 +84,7 @@ $phar->buildFromIterator(
|
|||
new RecursiveIteratorIterator(
|
||||
new Phar('/path/to/anotherphar.phar')),
|
||||
'phar:///path/to/anotherphar.phar/path/to/project');
|
||||
$phar->setStub($phar->createDefaultWebStub('cli/index.php', 'www/index.php'));
|
||||
$phar->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php'));
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue