-
Notifications
You must be signed in to change notification settings - Fork 1
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
dedensaka
committed
Mar 4, 2017
1 parent
c50722a
commit 2846b28
Showing
11 changed files
with
140 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,14 +5,17 @@ | |
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "denmasyarikin", | ||
"name": "Denma Syarikin", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.6.4", | ||
"laravel/framework": "^5.2", | ||
"doctrine/dbal": "v2.5.5" | ||
"illuminate/config": "^5.2", | ||
"illuminate/console": "^5.2", | ||
"illuminate/database": "^5.2", | ||
"illuminate/support": "^5.2", | ||
"doctrine/dbal": "^2.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
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
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
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
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
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,40 @@ | ||
<?php | ||
|
||
namespace Flipbox\OrmManager; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class LumenServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Perform post-registration booting of services. | ||
*/ | ||
public function boot() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Register any application services. | ||
*/ | ||
public function register() | ||
{ | ||
$this->mergeConfigFrom(__DIR__.'/Config/orm.php', 'orm'); | ||
|
||
$this->app->singleton('orm.database', function ($app) { | ||
return new DatabaseConnection($app['db']); | ||
}); | ||
|
||
$this->app->singleton('orm.manager', function ($app) { | ||
return new ModelManager($app['config'], $app['orm.database']); | ||
}); | ||
|
||
$this->commands([ | ||
Consoles\ModelList::class, | ||
Consoles\ModelDetail::class, | ||
Consoles\ModelConnect::class, | ||
Consoles\ModelBothConnect::class, | ||
Consoles\ModelAutoConnect::class, | ||
]); | ||
} | ||
} |
Oops, something went wrong.