public __construct ( OAuth\ServiceFactory $serviceFactory = null ) | ||
$serviceFactory | OAuth\ServiceFactory | - (Dependency injection) If not provided, a ServiceFactory instance will be constructed. |
public function __construct(ServiceFactory $serviceFactory = null)
{
if (null === $serviceFactory) {
// Create the service factory
$serviceFactory = new ServiceFactory();
}
$this->_serviceFactory = $serviceFactory;
}