-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29f2995
commit 4417f20
Showing
2 changed files
with
50 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
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,46 @@ | ||
<?php | ||
|
||
namespace Haemanthus\CodeIgniter3IdeHelper; | ||
|
||
use Silly\Application as SillyApplication; | ||
|
||
class Application | ||
{ | ||
const APP_NAME = 'CodeIgniter 3 IDE Helper'; | ||
|
||
const APP_VERSION = '0.1.0'; | ||
|
||
/** | ||
* Undocumented variable | ||
* | ||
* @var \Silly\Application | ||
*/ | ||
protected $app; | ||
|
||
public function __construct() | ||
{ | ||
$this->app = new SillyApplication(static::APP_NAME, static::APP_VERSION); | ||
} | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @return $this | ||
*/ | ||
public function registerCommands() | ||
{ | ||
return $this; | ||
} | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @return $this | ||
*/ | ||
public function run() | ||
{ | ||
$this->app->run(); | ||
|
||
return $this; | ||
} | ||
} |