I have a class Logger which, among other things has a method Log.
As Log is the most common use of the Logger instance, I have wired __invoke to call Log
Başka bir sınıf, "Site" üyesi "Giriş", Logger bir örneğini içerir.
Neden bu iş olur:
$Log = $this->Log;
$Log("Message");
Ama bu:
$this->Log("Message");
The former fails with "PHP Fatal error: Call to undefined method Site::Log()"
Is this a limitation of the callable object implementation, or am I misunderstanding something?