File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,8 +71,7 @@ public function loadViews()
7171 */
7272 public function registerRenderer ()
7373 {
74- $ this ->app ['Coreplex\Crumbs\Contracts\Renderer ' ] = $ this ->app ->share (function ($ app )
75- {
74+ $ this ->app ->singleton ('Coreplex\Crumbs\Contracts\Renderer ' , function ($ app ) {
7675 return (new ReflectionClass ($ app ['config ' ]['crumbs ' ]['renderer ' ]))->newInstanceArgs ([$ app ['view ' ]]);
7776 });
7877 }
@@ -84,8 +83,7 @@ public function registerRenderer()
8483 */
8584 public function registerCrumb ()
8685 {
87- $ this ->app ['Coreplex\Crumbs\Contracts\Crumb ' ] = $ this ->app ->share (function ($ app )
88- {
86+ $ this ->app ->singleton ('Coreplex\Crumbs\Contracts\Crumb ' , function ($ app ) {
8987 return new $ app ['config ' ]['crumbs ' ]['crumb ' ];
9088 });
9189 }
@@ -97,9 +95,9 @@ public function registerCrumb()
9795 */
9896 public function registerContainer ()
9997 {
100- $ this ->app ['Coreplex\Crumbs\Contracts\Container ' ] = $ this ->app ->share (function ($ app )
101- {
98+ $ this ->app ->singleton ('Coreplex\Crumbs\Contracts\Container ' , function ($ app ) {
10299 $ args = [$ app ['Coreplex\Crumbs\Contracts\Crumb ' ], $ app ['Coreplex\Crumbs\Contracts\Renderer ' ]];
100+
103101 return (new ReflectionClass ($ app ['config ' ]['crumbs ' ]['container ' ]))->newInstanceArgs ($ args );
104102 });
105103 }
@@ -118,4 +116,4 @@ public function provides()
118116 ];
119117 }
120118
121- }
119+ }
You can’t perform that action at this time.
0 commit comments