This repository was archived by the owner on Aug 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
src/Threesquared/LaravelWpApi Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1111 ],
1212 "require" : {
1313 "php" : " >=5.5.0" ,
14- "illuminate/support" : " ~5.0 " ,
14+ "illuminate/support" : " ~5.2 " ,
1515 "guzzlehttp/guzzle" : " ~6.0"
1616 },
1717 "require-dev" : {
Original file line number Diff line number Diff line change 11<?php namespace Threesquared \LaravelWpApi \Facades ;
22
33use Illuminate \Support \Facades \Facade ;
4+ use Threesquared \LaravelWpApi \WpApi ;
45
56class WpApi extends Facade {
67
7- protected static function getFacadeAccessor () { return ' wp-api ' ; }
8+ protected static function getFacadeAccessor () { return WpApi::class ; }
89
910}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function boot()
3131 */
3232 public function register ()
3333 {
34- $ this ->app ->bindShared ( ' wp-api ' , function ($ app ) {
34+ $ this ->app ->singleton (WpApi::class , function ($ app ) {
3535
3636 $ endpoint = $ this ->app ['config ' ]->get ('wp-api.endpoint ' );
3737 $ auth = $ this ->app ['config ' ]->get ('wp-api.auth ' );
@@ -40,10 +40,6 @@ public function register()
4040 return new WpApi ($ endpoint , $ client , $ auth );
4141
4242 });
43-
44- $ this ->app ->bind ('Threesquared\LaravelWpApi\WpApi ' , function ($ app ) {
45- return $ app ['wp-api ' ];
46- });
4743 }
4844
4945 /**
You can’t perform that action at this time.
0 commit comments