symfony框架
symfony框架调用的流程
目前这个是在RegisterController控制器中的一段代码
$user = t h i s − > g e t A u t h S e r v i c e ( ) − > r e g i s t e r ( this->getAuthService()->register( this−>getAuthService()−>register(registration);
现在我们去找getAuthService()这个方法
** 仅以使用PHPstudy ctrl + F 查找public function getAuthSercive() 类似的这种控制器 **
return $this->getServiceKernel()->createService(‘User.AuthService’);
我们在里面可以看到在Service里面的User目录下的AuthService控制器
** 找到回到上面,看到getAuthService()->register调用的是register方法,我们去AuthService去找register方法
public function register($registration, $type = ‘default’)
** 没写完 想到了在写