-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
360 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
/** | ||
* Proxy PHP file generated by Composer | ||
* | ||
* This file includes the referenced bin path (../phug/phug/phug) | ||
* using a stream wrapper to prevent the shebang from being output on PHP<8 | ||
* | ||
* @generated | ||
*/ | ||
|
||
namespace Composer; | ||
|
||
$GLOBALS['_composer_bin_dir'] = __DIR__; | ||
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..'.'/autoload.php'; | ||
|
||
if (PHP_VERSION_ID < 80000) { | ||
if (!class_exists('Composer\BinProxyWrapper')) { | ||
/** | ||
* @internal | ||
*/ | ||
final class BinProxyWrapper | ||
{ | ||
private $handle; | ||
private $position; | ||
private $realpath; | ||
|
||
public function stream_open($path, $mode, $options, &$opened_path) | ||
{ | ||
// get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution | ||
$opened_path = substr($path, 17); | ||
$this->realpath = realpath($opened_path) ?: $opened_path; | ||
$opened_path = $this->realpath; | ||
$this->handle = fopen($this->realpath, $mode); | ||
$this->position = 0; | ||
|
||
return (bool) $this->handle; | ||
} | ||
|
||
public function stream_read($count) | ||
{ | ||
$data = fread($this->handle, $count); | ||
|
||
if ($this->position === 0) { | ||
$data = preg_replace('{^#!.*\r?\n}', '', $data); | ||
} | ||
|
||
$this->position += strlen($data); | ||
|
||
return $data; | ||
} | ||
|
||
public function stream_cast($castAs) | ||
{ | ||
return $this->handle; | ||
} | ||
|
||
public function stream_close() | ||
{ | ||
fclose($this->handle); | ||
} | ||
|
||
public function stream_lock($operation) | ||
{ | ||
return $operation ? flock($this->handle, $operation) : true; | ||
} | ||
|
||
public function stream_seek($offset, $whence) | ||
{ | ||
if (0 === fseek($this->handle, $offset, $whence)) { | ||
$this->position = ftell($this->handle); | ||
return true; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
public function stream_tell() | ||
{ | ||
return $this->position; | ||
} | ||
|
||
public function stream_eof() | ||
{ | ||
return feof($this->handle); | ||
} | ||
|
||
public function stream_stat() | ||
{ | ||
return array(); | ||
} | ||
|
||
public function stream_set_option($option, $arg1, $arg2) | ||
{ | ||
return true; | ||
} | ||
|
||
public function url_stat($path, $flags) | ||
{ | ||
$path = substr($path, 17); | ||
if (file_exists($path)) { | ||
return stat($path); | ||
} | ||
|
||
return false; | ||
} | ||
} | ||
} | ||
|
||
if ( | ||
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) | ||
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) | ||
) { | ||
include("phpvfscomposer://" . __DIR__ . '/..'.'/phug/phug/phug'); | ||
exit(0); | ||
} | ||
} | ||
|
||
include __DIR__ . '/..'.'/phug/phug/phug'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
/** | ||
* Proxy PHP file generated by Composer | ||
* | ||
* This file includes the referenced bin path (../pug-php/pug/pug) | ||
* using a stream wrapper to prevent the shebang from being output on PHP<8 | ||
* | ||
* @generated | ||
*/ | ||
|
||
namespace Composer; | ||
|
||
$GLOBALS['_composer_bin_dir'] = __DIR__; | ||
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..'.'/autoload.php'; | ||
|
||
if (PHP_VERSION_ID < 80000) { | ||
if (!class_exists('Composer\BinProxyWrapper')) { | ||
/** | ||
* @internal | ||
*/ | ||
final class BinProxyWrapper | ||
{ | ||
private $handle; | ||
private $position; | ||
private $realpath; | ||
|
||
public function stream_open($path, $mode, $options, &$opened_path) | ||
{ | ||
// get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution | ||
$opened_path = substr($path, 17); | ||
$this->realpath = realpath($opened_path) ?: $opened_path; | ||
$opened_path = $this->realpath; | ||
$this->handle = fopen($this->realpath, $mode); | ||
$this->position = 0; | ||
|
||
return (bool) $this->handle; | ||
} | ||
|
||
public function stream_read($count) | ||
{ | ||
$data = fread($this->handle, $count); | ||
|
||
if ($this->position === 0) { | ||
$data = preg_replace('{^#!.*\r?\n}', '', $data); | ||
} | ||
|
||
$this->position += strlen($data); | ||
|
||
return $data; | ||
} | ||
|
||
public function stream_cast($castAs) | ||
{ | ||
return $this->handle; | ||
} | ||
|
||
public function stream_close() | ||
{ | ||
fclose($this->handle); | ||
} | ||
|
||
public function stream_lock($operation) | ||
{ | ||
return $operation ? flock($this->handle, $operation) : true; | ||
} | ||
|
||
public function stream_seek($offset, $whence) | ||
{ | ||
if (0 === fseek($this->handle, $offset, $whence)) { | ||
$this->position = ftell($this->handle); | ||
return true; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
public function stream_tell() | ||
{ | ||
return $this->position; | ||
} | ||
|
||
public function stream_eof() | ||
{ | ||
return feof($this->handle); | ||
} | ||
|
||
public function stream_stat() | ||
{ | ||
return array(); | ||
} | ||
|
||
public function stream_set_option($option, $arg1, $arg2) | ||
{ | ||
return true; | ||
} | ||
|
||
public function url_stat($path, $flags) | ||
{ | ||
$path = substr($path, 17); | ||
if (file_exists($path)) { | ||
return stat($path); | ||
} | ||
|
||
return false; | ||
} | ||
} | ||
} | ||
|
||
if ( | ||
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) | ||
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) | ||
) { | ||
include("phpvfscomposer://" . __DIR__ . '/..'.'/pug-php/pug/pug'); | ||
exit(0); | ||
} | ||
} | ||
|
||
include __DIR__ . '/..'.'/pug-php/pug/pug'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
/** | ||
* Proxy PHP file generated by Composer | ||
* | ||
* This file includes the referenced bin path (../symfony/var-dumper/Resources/bin/var-dump-server) | ||
* using a stream wrapper to prevent the shebang from being output on PHP<8 | ||
* | ||
* @generated | ||
*/ | ||
|
||
namespace Composer; | ||
|
||
$GLOBALS['_composer_bin_dir'] = __DIR__; | ||
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..'.'/autoload.php'; | ||
|
||
if (PHP_VERSION_ID < 80000) { | ||
if (!class_exists('Composer\BinProxyWrapper')) { | ||
/** | ||
* @internal | ||
*/ | ||
final class BinProxyWrapper | ||
{ | ||
private $handle; | ||
private $position; | ||
private $realpath; | ||
|
||
public function stream_open($path, $mode, $options, &$opened_path) | ||
{ | ||
// get rid of phpvfscomposer:// prefix for __FILE__ & __DIR__ resolution | ||
$opened_path = substr($path, 17); | ||
$this->realpath = realpath($opened_path) ?: $opened_path; | ||
$opened_path = $this->realpath; | ||
$this->handle = fopen($this->realpath, $mode); | ||
$this->position = 0; | ||
|
||
return (bool) $this->handle; | ||
} | ||
|
||
public function stream_read($count) | ||
{ | ||
$data = fread($this->handle, $count); | ||
|
||
if ($this->position === 0) { | ||
$data = preg_replace('{^#!.*\r?\n}', '', $data); | ||
} | ||
|
||
$this->position += strlen($data); | ||
|
||
return $data; | ||
} | ||
|
||
public function stream_cast($castAs) | ||
{ | ||
return $this->handle; | ||
} | ||
|
||
public function stream_close() | ||
{ | ||
fclose($this->handle); | ||
} | ||
|
||
public function stream_lock($operation) | ||
{ | ||
return $operation ? flock($this->handle, $operation) : true; | ||
} | ||
|
||
public function stream_seek($offset, $whence) | ||
{ | ||
if (0 === fseek($this->handle, $offset, $whence)) { | ||
$this->position = ftell($this->handle); | ||
return true; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
public function stream_tell() | ||
{ | ||
return $this->position; | ||
} | ||
|
||
public function stream_eof() | ||
{ | ||
return feof($this->handle); | ||
} | ||
|
||
public function stream_stat() | ||
{ | ||
return array(); | ||
} | ||
|
||
public function stream_set_option($option, $arg1, $arg2) | ||
{ | ||
return true; | ||
} | ||
|
||
public function url_stat($path, $flags) | ||
{ | ||
$path = substr($path, 17); | ||
if (file_exists($path)) { | ||
return stat($path); | ||
} | ||
|
||
return false; | ||
} | ||
} | ||
} | ||
|
||
if ( | ||
(function_exists('stream_get_wrappers') && in_array('phpvfscomposer', stream_get_wrappers(), true)) | ||
|| (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) | ||
) { | ||
include("phpvfscomposer://" . __DIR__ . '/..'.'/symfony/var-dumper/Resources/bin/var-dump-server'); | ||
exit(0); | ||
} | ||
} | ||
|
||
include __DIR__ . '/..'.'/symfony/var-dumper/Resources/bin/var-dump-server'; |