BeSimpleSoap/Resources/doc/installation_deps.rst

92 lines
2.8 KiB
ReStructuredText
Raw Normal View History

2013-02-20 15:58:12 +01:00
Installation with deps file (deprecated)
========================================
2011-08-02 23:27:56 +02:00
2013-02-20 15:58:12 +01:00
**The installation with deps file is deprecated.
Please prefer install the** `BeSimpleSoapBundle <https://github.com/BeSimple/BeSimpleSoapBundle>`_ **with** `Composer <http://getcomposer.org>`_.
2011-08-02 23:27:56 +02:00
2013-02-20 15:58:12 +01:00
Download `BeSimple\\SoapCommon <http://github.com/BeSimple/BeSimpleSoapCommon>`_ and `BeSimple\\SoapServer <http://github.com/BeSimple/BeSimpleSoapServer>`_ (only for the server part) and/or `BeSimple\\SoapClient <http://github.com/BeSimple/BeSimpleSoapClient>`_ (only for ther client part).
2011-11-13 22:40:42 +01:00
.. code-block:: ini
; deps file
[BeSimple\SoapCommon]
2012-11-15 10:34:29 +01:00
git=https://github.com/BeSimple/BeSimpleSoapCommon.git
target=besimple-soapcommon
2013-02-20 15:26:26 +01:00
2011-11-13 22:40:42 +01:00
[BeSimple\SoapClient]
2012-11-15 10:34:29 +01:00
git=https://github.com/BeSimple/BeSimpleSoapClient.git
target=besimple-soapclient
2013-02-20 15:26:26 +01:00
2011-11-13 22:40:42 +01:00
[BeSimple\SoapServer]
2012-11-15 10:34:29 +01:00
git=https://github.com/BeSimple/BeSimpleSoapServer.git
target=besimple-soapserver
2011-11-13 22:40:42 +01:00
Add `BeSimple` libraries in autoload.php
.. code-block:: php
// app/autoload.php
$loader->registerNamespaces(array(
2011-12-01 11:12:40 +01:00
'BeSimple\\SoapCommon' => __DIR__.'/../vendor/besimple-soapcommon/src',
'BeSimple\\SoapServer' => __DIR__.'/../vendor/besimple-soapserver/src',
'BeSimple\\SoapClient' => __DIR__.'/../vendor/besimple-soapclient/src',
2011-11-13 22:40:42 +01:00
// your other namespaces
));
2013-02-20 15:58:12 +01:00
Download `Zend\\Soap <http://github.com/BeSimple/zend-soap>`_ and `Zend\\Mime <http://github.com/BeSimple/zend-mime>`_ or add in `deps` file. `Zend` library is required only for the server part.
2011-08-02 23:27:56 +02:00
.. code-block:: ini
; deps file
[Zend\Soap]
git=http://github.com/BeSimple/zend-soap.git
target=/zend-framework/library/Zend/Soap
2011-08-07 11:34:00 +02:00
[Zend\Mime]
git=http://github.com/BeSimple/zend-mime.git
target=/zend-framework/library/Zend/Mime
Add `Zend` library in autoload.php
2011-08-02 23:27:56 +02:00
.. code-block:: php
// app/autoload.php
$loader->registerNamespaces(array(
2011-08-07 11:34:00 +02:00
'Zend' => __DIR__.'/../vendor/zend-framework/library',
2011-08-02 23:27:56 +02:00
// your other namespaces
));
2013-02-20 15:58:12 +01:00
`Download <http://github.com/BeSimple/BeSimpleSoapBundle>`_ the bundle or add in `deps` file
2011-08-02 23:27:56 +02:00
.. code-block:: ini
; deps file
[BeSimpleSoapBundle]
git=http://github.com/BeSimple/BeSimpleSoapBundle.git
target=/bundles/BeSimple/SoapBundle
Add `BeSimple` in autoload.php
.. code-block:: php
// app/autoload.php
$loader->registerNamespaces(array(
'BeSimple' => __DIR__.'/../vendor/bundles',
// your other namespaces
));
Add `BeSimpleSoapBundle` in your Kernel class
.. code-block:: php
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
2011-08-09 13:48:56 +02:00
new BeSimple\SoapBundle\BeSimpleSoapBundle(),
2011-08-02 23:27:56 +02:00
// ...
);
}