下面的 PHP 函数产生了这个错误: Parse error: syntax error, unexpected ',', on this line that content this code:( $className, new $this->registerService( $service ) );
有谁知道出了什么问题?
function lazyCreateSingletonServiceByClassName($className) {
$service = $this->createContextAwareObjectOfClass( $className );
if (method_exists( $service, 'init' )) {
$service->init( );
}
SingletonServiceProvider;
( $className, new $this->registerService( $service ) );
}
坦克