Advertisement
fruffl

new illiFW init

Jul 26th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.69 KB | None | 0 0
  1. <?PHP
  2. namespace localhost\illiFW\dev;
  3. require_once 'ILLI/illi.php';
  4. \Server\Init::development();
  5. \Server\Init::debug();
  6. \Server\Init::illi();
  7.  
  8. use ILLI\Application as Application;
  9. use ILLI\Runtime\Program as Program;
  10.  
  11. class lucas extends Application
  12. {
  13.     public static function delegate($callable)
  14.     {
  15.         try
  16.         {
  17.             $callable();
  18.         }
  19.         catch(\ILLI\Exception\Base $e)
  20.         {
  21.             print $e->export()->asText();
  22.         }
  23.         catch(\Exception $e)
  24.         {
  25.             var_dump($e);
  26.         }
  27.     }
  28. }
  29.  
  30. lucas::delegate(function()
  31. {
  32.     var_dump(lucas::getThread());
  33.     var_dump((new \ILLI\Php\Filepath('foo\bar'))->invoke());
  34. });
  35.  
  36. ?>
  37.  
  38. object(localhost\illiFW\dev\lucas)#7 (2) {
  39.   ["__threadName":"ILLI\Runtime\Program":private]=>
  40.   string(26) "localhost\illiFW\dev\lucas"
  41.   ["__autoLoader":"ILLI\Runtime\Program":private]=>
  42.   object(ILLI\Runtime\Autoload)#8 (3) {
  43.     ["__PROGRAM":"ILLI\Runtime\Autoload":private]=>
  44.     *RECURSION*
  45.     ["__vendorDir":"ILLI\Runtime\Autoload":private]=>
  46.     string(57) "/var/www/dev/ILLI/3.0.1/VENDOR/"
  47.     ["__threadName":"ILLI\Runtime\Autoload":private]=>
  48.     string(26) "localhost\illiFW\dev\lucas"
  49.   }
  50. }
  51.  
  52.  
  53. ERROR
  54.  
  55. ILLI\Php\FilepathException
  56.         Message         Unable to handle request for *foo\bar*. PHP-file
  57.                         */var/www/dev/foo/bar.php* not
  58.                         found.
  59.        
  60.         Thrown in       /var/www/dev/ILLI/3.0.1/VENDOR/ILLI/Php/Filepath.php
  61.         Line            00000216
  62.         ErrorCode       0x000E4501
  63.         Level           1
  64.         References
  65.                         Ref #request            string(7) "foo\bar"
  66.                                                  
  67.                         Ref #file               string(50) "/var/www/dev/foo/bar.php"
  68.                                                  
  69.                         Ref #__INFO__           object(ILLI\Php\Filepath)#9 (14) {
  70.                                                    ["__REFLECTOR":"ILLI\Php\Filepath":private]=>
  71.                                                    NULL
  72.                                                    ["__origin":"ILLI\Php\Filepath":private]=>
  73.                                                    string(7) "foo\bar"
  74.                                                    ["__request":"ILLI\Php\Filepath":private]=>
  75.                                                    string(7) "foo/bar"
  76.                                                    ["__class":"ILLI\Php\Filepath":private]=>
  77.                                                    string(3) "bar"
  78.                                                    ["__namespace":"ILLI\Php\Filepath":private]=>
  79.                                                    string(3) "foo"
  80.                                                    ["__ns":"ILLI\Php\Filepath":private]=>
  81.                                                    string(0) ""
  82.                                                    ["__nsBase":"ILLI\Php\Filepath":private]=>
  83.                                                    string(4) "foo/"
  84.                                                    ["__nsDir":"ILLI\Php\Filepath":private]=>
  85.                                                    NULL
  86.                                                    ["__nsPath":"ILLI\Php\Filepath":private]=>
  87.                                                    string(4) "foo/"
  88.                                                    ["__classDir":"ILLI\Php\Filepath":private]=>
  89.                                                    string(3) "bar"
  90.                                                    ["__file":"ILLI\Php\Filepath":private]=>
  91.                                                    string(7) "foo/bar"
  92.                                                    ["__filePath":"ILLI\Php\Filepath":private]=>
  93.                                                    string(11) "foo/bar.php"
  94.                                                    ["__vendorDir":"ILLI\Php\Filepath":private]=>
  95.                                                    string(39) "/var/www/dev/"
  96.                                                    ["__includePath":"ILLI\Php\Filepath":private]=>
  97.                                                    string(50) "/var/www/dev/foo/bar.php"
  98.                                                  }
  99.                                                  
  100.  
  101.  
  102.  
  103.  
  104. ILLI\Php\Filepath->invoke()
  105.  
  106.                 File            /var/www/dev/index.php
  107.                 Line            33
  108.  
  109. localhost\illiFW\dev\{closure}()
  110.  
  111.                 File            /var/www/dev/index.php
  112.                 Line            17
  113.  
  114. localhost\illiFW\dev\lucas::delegate()
  115.  
  116.                 Parameter 001   object(Closure)#6 (0) {
  117.                                 }
  118.                 File            /var/www/dev/index.php
  119.                 Line            34
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement