Skip to content

Commit d07bcd5

Browse files
committed
replaced Leaf\Leaf with Leaf\App
1 parent 51d9704 commit d07bcd5

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Leaf/Leaf.php renamed to Leaf/App.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
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')) {

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
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
*/
1414
require 'vendor/autoload.php';
1515

16-
\Leaf\Leaf::registerAutoloader();
16+
\Leaf\App::registerAutoloader();
1717
/**
1818
* Step 2: Instantiate a Leaf application
1919
*
@@ -22,7 +22,7 @@
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
*/

0 commit comments

Comments
 (0)