Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- namespace localhost\illiFW\dev;
- require_once 'ILLI/illi.php';
- \Server\Init::development();
- \Server\Init::debug();
- \Server\Init::illi();
- use ILLI\Application as Application;
- use ILLI\Runtime\Program as Program;
- class lucas extends Application
- {
- public static function delegate($callable)
- {
- try
- {
- $callable();
- }
- catch(\ILLI\Exception\Base $e)
- {
- print $e->export()->asText();
- }
- catch(\Exception $e)
- {
- var_dump($e);
- }
- }
- }
- lucas::delegate(function()
- {
- var_dump(lucas::getThread());
- var_dump((new \ILLI\Php\Filepath('foo\bar'))->invoke());
- });
- ?>
- object(localhost\illiFW\dev\lucas)#7 (2) {
- ["__threadName":"ILLI\Runtime\Program":private]=>
- string(26) "localhost\illiFW\dev\lucas"
- ["__autoLoader":"ILLI\Runtime\Program":private]=>
- object(ILLI\Runtime\Autoload)#8 (3) {
- ["__PROGRAM":"ILLI\Runtime\Autoload":private]=>
- *RECURSION*
- ["__vendorDir":"ILLI\Runtime\Autoload":private]=>
- string(57) "/var/www/dev/ILLI/3.0.1/VENDOR/"
- ["__threadName":"ILLI\Runtime\Autoload":private]=>
- string(26) "localhost\illiFW\dev\lucas"
- }
- }
- ERROR
- ILLI\Php\FilepathException
- Message Unable to handle request for *foo\bar*. PHP-file
- */var/www/dev/foo/bar.php* not
- found.
- Thrown in /var/www/dev/ILLI/3.0.1/VENDOR/ILLI/Php/Filepath.php
- Line 00000216
- ErrorCode 0x000E4501
- Level 1
- References
- Ref #request string(7) "foo\bar"
- Ref #file string(50) "/var/www/dev/foo/bar.php"
- Ref #__INFO__ object(ILLI\Php\Filepath)#9 (14) {
- ["__REFLECTOR":"ILLI\Php\Filepath":private]=>
- NULL
- ["__origin":"ILLI\Php\Filepath":private]=>
- string(7) "foo\bar"
- ["__request":"ILLI\Php\Filepath":private]=>
- string(7) "foo/bar"
- ["__class":"ILLI\Php\Filepath":private]=>
- string(3) "bar"
- ["__namespace":"ILLI\Php\Filepath":private]=>
- string(3) "foo"
- ["__ns":"ILLI\Php\Filepath":private]=>
- string(0) ""
- ["__nsBase":"ILLI\Php\Filepath":private]=>
- string(4) "foo/"
- ["__nsDir":"ILLI\Php\Filepath":private]=>
- NULL
- ["__nsPath":"ILLI\Php\Filepath":private]=>
- string(4) "foo/"
- ["__classDir":"ILLI\Php\Filepath":private]=>
- string(3) "bar"
- ["__file":"ILLI\Php\Filepath":private]=>
- string(7) "foo/bar"
- ["__filePath":"ILLI\Php\Filepath":private]=>
- string(11) "foo/bar.php"
- ["__vendorDir":"ILLI\Php\Filepath":private]=>
- string(39) "/var/www/dev/"
- ["__includePath":"ILLI\Php\Filepath":private]=>
- string(50) "/var/www/dev/foo/bar.php"
- }
- ILLI\Php\Filepath->invoke()
- File /var/www/dev/index.php
- Line 33
- localhost\illiFW\dev\{closure}()
- File /var/www/dev/index.php
- Line 17
- localhost\illiFW\dev\lucas::delegate()
- Parameter 001 object(Closure)#6 (0) {
- }
- File /var/www/dev/index.php
- Line 34
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement