symfony调用的流程

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’)

** 没写完 想到了在写

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值