Answer the question
In order to leave comments, you need to log in
What to do if the package method from vendor is static, but you need to call it dynamically?
https://github.com/Behat/Transliterator/blob/maste...
All its methods are static, but you need to do this:
public function __construct(Transliterator $transliterator
) {
$this->transliterator = $transliterator;
}
public function()
{
$slug = Transliterator::transliterate($string) ;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question