This repository was archived by the owner on May 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1313
1414Include the service provider in ` config/app.php `
1515``` php
16- 'Mitch \LaravelDoctrine\LaravelDoctrineServiceProvider ',
16+ 'Brouwers \LaravelDoctrine\DoctrineServiceProvider ',
1717'Maatwebsite\Usher\UsherServiceProvider'
1818```
1919
Original file line number Diff line number Diff line change 1616 "email" : " patrick@maatwebsite.nl"
1717 }
1818 ],
19- "repositories" : [
20- {
21- "type" : " vcs" ,
22- "url" : " git@github.com:Maatwebsite/laravel-doctrine.git"
23- }
24- ],
2519 "require" : {
2620 "php" : " >=5.4.0" ,
2721 "nesbot/carbon" : " ~1.0" ,
2822 "beberlei/assert" : " ~2.3" ,
29- "mitchellvanw /laravel-doctrine" : " dev-develop "
23+ "brouwers /laravel-doctrine" : " ~1.0.0 "
3024 },
3125 "require-dev" : {
3226 "phpunit/phpunit" : " ~4.5" ,
Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ public function boot()
2828 */
2929 public function register ()
3030 {
31+ // Add namespace to driver chain
32+ $ this ->app ['events ' ]->listen ('doctrine.driver-chain::booted ' , function ($ driver , $ chain ) {
33+ $ chain ->addDriver ($ driver , 'Maatwebsite ' );
34+ });
35+
3136 $ this ->bindUserEntity ();
3237 $ this ->bindRepositories ();
3338 $ this ->extendAuthManager ();
@@ -39,7 +44,7 @@ public function register()
3944 */
4045 protected function extendAuthManager ()
4146 {
42- // Set Usher as default auth drive
47+ // Set Usher as default auth driver
4348 $ this ->app ['config ' ]->set ('auth.driver ' , 'usher ' );
4449
4550 // Extend the auth manager
You can’t perform that action at this time.
0 commit comments