You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any particular reason for changing the constructor method type from public to private? This class doesn't work in codeigniter unless I make the constructor public...
The text was updated successfully, but these errors were encountered:
It is designed to be a singleton (you can only ever have one instance of it). If the constructor is public and there are multiple ChromePhp instances then it could cause issues with incomplete or missing logs.
There must be a way around this in codeigniter?
ChromePhp::getInstance()
Would be how you could get an instance of the class although all of the methods should be called statically.
@levani: You don't need to in Codeigniter. Just use it the standard way, don't use it the Codeignter way. There is no need. It's already a super-static, no need to use Codeignter to turn it first into one.
Is there any particular reason for changing the constructor method type from public to private? This class doesn't work in codeigniter unless I make the constructor public...
The text was updated successfully, but these errors were encountered: