SoapServer があります。この SOAP サーバーにはクラスがあります
$server = new \SoapServer($this->wsdl_path, array('classmap' => $this->classmap));
$server->setClass('MyNamespace\\MyBundle\\Lib\\MySoapMethods');
そして、実行中のメソッドを実際に含むクラス MySoapMethods があります。
class MySoapMethods
{
public function sendNotification(NotificationRequest $request) {}
}
行われている呼び出しは sendNotification です。私の質問は: Doctrine の EntityManager をここに挿入するにはどうすればよいですか? このためのメソッドが見つかりません。これに静的呼び出しを使用するのは本当に嫌いです。