File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 * @property \Leaf\Http\Response $response
2626 * @property \Leaf\Http\Request $request
2727 */
28- class Leaf
28+ class App
2929{
3030 /**
3131 * @const string
@@ -113,7 +113,7 @@ public static function autoload($className)
113113 */
114114 public static function registerAutoloader ()
115115 {
116- spl_autoload_register (__NAMESPACE__ . "\\Leaf ::autoload " );
116+ spl_autoload_register (__NAMESPACE__ . "\\App ::autoload " );
117117 }
118118
119119 /********************************************************************************
@@ -267,7 +267,7 @@ public function __unset($name)
267267 /**
268268 * Get application instance by name
269269 * @param string $name The name of the Leaf application
270- * @return \Leaf\Leaf |null
270+ * @return \Leaf\App |null
271271 */
272272 public static function getInstance ($ name = 'default ' )
273273 {
@@ -1453,7 +1453,7 @@ public function add(\Leaf\Middleware $newMiddleware)
14531453 * @return bool
14541454 */
14551455 public function run ($ callback = null ) {
1456- set_error_handler (array ('\Leaf\Leaf ' , 'handleErrors ' ));
1456+ set_error_handler (array ('\Leaf\App ' , 'handleErrors ' ));
14571457
14581458 //Apply final outer middleware layers
14591459 if ($ this ->config ('debug ' )) {
Original file line number Diff line number Diff line change 77 *
88 * If you are using Composer, you can skip this step.
99 */
10- require 'Leaf/Leaf .php ' ;
10+ require 'Leaf/App .php ' ;
1111/**
1212 * Composer autoloader for extra packages
1313 */
1414require 'vendor/autoload.php ' ;
1515
16- \Leaf \Leaf ::registerAutoloader ();
16+ \Leaf \App ::registerAutoloader ();
1717/**
1818 * Step 2: Instantiate a Leaf application
1919 *
2222 * your Leaf application now by passing an associative array
2323 * of setting names and values into the application constructor.
2424 */
25- $ app = new \Leaf \Leaf ();
25+ $ app = new \Leaf \App ();
2626/**
2727 * Initialise the Leaf Form package
2828 */
You can’t perform that action at this time.
0 commit comments