Updated installation doc with Composer
This commit is contained in:
parent
e3ddebfea4
commit
f26fc4f72a
|
@ -6,6 +6,62 @@ Requirements
|
||||||
|
|
||||||
Install and enable PHP's SOAP extension.
|
Install and enable PHP's SOAP extension.
|
||||||
|
|
||||||
|
With Composer
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Add `besimple/soap-bundle` (with vendors) in your composer.json:
|
||||||
|
|
||||||
|
.. code-block:: json
|
||||||
|
|
||||||
|
{
|
||||||
|
"require": {
|
||||||
|
"besimple/soap-bundle": "dev-master",
|
||||||
|
"besimple/soap-common": "dev-master",
|
||||||
|
"ass/xmlsecurity": "dev-master"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
To install the server please add `besimple/soap-server` in your composer.json:
|
||||||
|
|
||||||
|
.. code-block:: json
|
||||||
|
|
||||||
|
{
|
||||||
|
"require": {
|
||||||
|
"besimple/soap-server": "dev-master"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
To install the client please add `besimple/soap-client` in your composer.json:
|
||||||
|
|
||||||
|
.. code-block:: json
|
||||||
|
|
||||||
|
{
|
||||||
|
"require": {
|
||||||
|
"besimple/soap-client": "dev-master"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
$ php composer.phar update
|
||||||
|
|
||||||
|
Enable the `BeSimpleSoapBundle` in your Kernel class
|
||||||
|
|
||||||
|
.. code-block:: php
|
||||||
|
|
||||||
|
// app/AppKernel.php
|
||||||
|
public function registerBundles()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
// ...
|
||||||
|
new BeSimple\SoapBundle\BeSimpleSoapBundle(),
|
||||||
|
// ...
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
With deps file (outdated)
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Download `BeSimple\\SoapCommon`_ and `BeSimple\\SoapServer`_ (only for the server part) and/or `BeSimple\\SoapClient`_ (only for ther client part).
|
Download `BeSimple\\SoapCommon`_ and `BeSimple\\SoapServer`_ (only for the server part) and/or `BeSimple\\SoapClient`_ (only for ther client part).
|
||||||
|
|
||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
@ -14,11 +70,11 @@ Download `BeSimple\\SoapCommon`_ and `BeSimple\\SoapServer`_ (only for the serve
|
||||||
[BeSimple\SoapCommon]
|
[BeSimple\SoapCommon]
|
||||||
git=https://github.com/BeSimple/BeSimpleSoapCommon.git
|
git=https://github.com/BeSimple/BeSimpleSoapCommon.git
|
||||||
target=besimple-soapcommon
|
target=besimple-soapcommon
|
||||||
|
|
||||||
[BeSimple\SoapClient]
|
[BeSimple\SoapClient]
|
||||||
git=https://github.com/BeSimple/BeSimpleSoapClient.git
|
git=https://github.com/BeSimple/BeSimpleSoapClient.git
|
||||||
target=besimple-soapclient
|
target=besimple-soapclient
|
||||||
|
|
||||||
[BeSimple\SoapServer]
|
[BeSimple\SoapServer]
|
||||||
git=https://github.com/BeSimple/BeSimpleSoapServer.git
|
git=https://github.com/BeSimple/BeSimpleSoapServer.git
|
||||||
target=besimple-soapserver
|
target=besimple-soapserver
|
||||||
|
@ -60,7 +116,7 @@ Add `Zend` library in autoload.php
|
||||||
));
|
));
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
````````````
|
||||||
|
|
||||||
`Download`_ the bundle or add in `deps` file
|
`Download`_ the bundle or add in `deps` file
|
||||||
|
|
||||||
|
@ -95,7 +151,6 @@ Add `BeSimpleSoapBundle` in your Kernel class
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.. _`Zend\\Soap`: http://github.com/BeSimple/zend-soap
|
.. _`Zend\\Soap`: http://github.com/BeSimple/zend-soap
|
||||||
.. _`Zend\\Mime`: http://github.com/BeSimple/zend-mime
|
.. _`Zend\\Mime`: http://github.com/BeSimple/zend-mime
|
||||||
.. _`BeSimple\\SoapCommon`: http://github.com/BeSimple/BeSimpleSoapCommon
|
.. _`BeSimple\\SoapCommon`: http://github.com/BeSimple/BeSimpleSoapCommon
|
||||||
|
|
|
@ -37,4 +37,4 @@ class SoapAttachment
|
||||||
{
|
{
|
||||||
return $this->content;
|
return $this->content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,4 +74,4 @@ class SoapClientBuilder extends BaseSoapClientBuilder
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,4 +47,4 @@ class SoapHeader
|
||||||
{
|
{
|
||||||
return new \SoapHeader($this->namespace, $this->name, $this->data);
|
return new \SoapHeader($this->namespace, $this->name, $this->data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,4 +164,4 @@ class SoapRequest extends Request
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,4 +66,4 @@ class SoapResponse extends Response
|
||||||
{
|
{
|
||||||
return $this->soapReturnValue;
|
return $this->soapReturnValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,8 @@ class WebServiceContext
|
||||||
private $serviceBinder;
|
private $serviceBinder;
|
||||||
private $serverBuilder;
|
private $serverBuilder;
|
||||||
|
|
||||||
public function __construct(LoaderInterface $loader, DumperInterface $dumper, Classmap $classmap, TypeRepository $typeRepository, TypeConverterCollection $converters, array $options) {
|
public function __construct(LoaderInterface $loader, DumperInterface $dumper, Classmap $classmap, TypeRepository $typeRepository, TypeConverterCollection $converters, array $options)
|
||||||
|
{
|
||||||
$this->loader = $loader;
|
$this->loader = $loader;
|
||||||
$this->wsdlFileDumper = $dumper;
|
$this->wsdlFileDumper = $dumper;
|
||||||
|
|
||||||
|
@ -51,7 +52,7 @@ class WebServiceContext
|
||||||
$this->typeRepository = $typeRepository;
|
$this->typeRepository = $typeRepository;
|
||||||
$this->converters = $converters;
|
$this->converters = $converters;
|
||||||
|
|
||||||
$this->options = $options;
|
$this->options = $options;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getServiceDefinition()
|
public function getServiceDefinition()
|
||||||
|
|
Loading…
Reference in New Issue