File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2323***/
2424
2525use CodeIgniter \Config \BaseConfig ;
26- use CodeIgniter \Config \Services ;
2726use CodeIgniter \View \RendererInterface ;
27+ use Config \Services ;
2828use Tatter \Alerts \Exceptions \AlertsException ;
2929
3030/*** CLASS ***/
Original file line number Diff line number Diff line change 11<?php namespace Tatter \Alerts \Config ;
22
3- use CodeIgniter \Config \BaseService ;
43use CodeIgniter \View \RendererInterface ;
54
6- class Services extends BaseService
5+ class Services extends \ Config \Services
76{
87 public static function alerts (BaseConfig $ config = null , RendererInterface $ view = null , bool $ getShared = true )
98 {
10- if ($ getShared ):
9+ if ($ getShared )
10+ {
1111 return static ::getSharedInstance ('alerts ' , $ config , $ view );
12- endif ;
12+ }
1313
1414 // If no config was injected then load one
1515 // Prioritizes app/Config if found
1616 if (empty ($ config ))
17+ {
1718 $ config = config ('Alerts ' );
19+ }
1820
1921 return new \Tatter \Alerts \Alerts ($ config , $ view );
2022 }
You can’t perform that action at this time.
0 commit comments