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.
|
||||
|
||||
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).
|
||||
|
||||
.. code-block:: ini
|
||||
|
@ -60,7 +116,7 @@ Add `Zend` library in autoload.php
|
|||
));
|
||||
|
||||
Installation
|
||||
------------
|
||||
````````````
|
||||
|
||||
`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\\Mime`: http://github.com/BeSimple/zend-mime
|
||||
.. _`BeSimple\\SoapCommon`: http://github.com/BeSimple/BeSimpleSoapCommon
|
||||
|
|
|
@ -42,7 +42,8 @@ class WebServiceContext
|
|||
private $serviceBinder;
|
||||
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->wsdlFileDumper = $dumper;
|
||||
|
||||
|
@ -51,7 +52,7 @@ class WebServiceContext
|
|||
$this->typeRepository = $typeRepository;
|
||||
$this->converters = $converters;
|
||||
|
||||
$this->options = $options;
|
||||
$this->options = $options;
|
||||
}
|
||||
|
||||
public function getServiceDefinition()
|
||||
|
|
Loading…
Reference in New Issue