-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Phalcon\Translate\InterpolatorFactory::newInstance #15038
Labels
enhancement
Enhancement to the framework
Comments
Resovled |
niden
added a commit
that referenced
this issue
May 16, 2020
niden
added a commit
that referenced
this issue
May 31, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently
Phalcon\Translate\InterpolatorFactory::newInstance
looks as follows:this->checkService(name);
From design point of view, child class shouldn't know what internal check need to perform. It is base class responsibility.
let definition = this->mapper[name];
For the same reason child class should know nothing about the name of the protected property of the base class (as well as the signature of that property). It will be better to use an interface method here
I think need to merge
into an interface method and move to a base class.
The text was updated successfully, but these errors were encountered: