Пример #1
0
 /**
  * Constructor.
  *
  * @param string                   $wsdl       URI of the WSDL file
  * @param EventDispatcherInterface $dispatcher The event dispatcher
  * @param User                     $user       The profile
  * @param array                    $options    The options
  */
 public function __construct($wsdl, EventDispatcherInterface $dispatcher, User $user, array $options = array())
 {
     $defaults = array('soap_version' => SOAP_1_1, 'encoding' => 'UTF-8', 'trace' => true, 'exception' => true, 'cache_wsdl' => WSDL_CACHE_BOTH, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS);
     parent::__construct($wsdl, $options + $user->getSoapOptions() + $defaults);
     $this->dispatcher = $dispatcher;
     $this->user = $user;
 }