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
|
||||||
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue