Skip to content

Commit

Permalink
Added upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
drieschel committed Sep 27, 2021
1 parent b29aeca commit bfa7782
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ Plugins offer developers an easy way of adapting and extending an endpoint.

.. include:: /plugins/map.rst.inc

Upgrading
---------

.. toctree::
:hidden:

upgrading/index

.. include:: /upgrading/map.rst.inc

FAQ (Frequently Asked Questions)
--------------------------------

Expand Down
11 changes: 11 additions & 0 deletions upgrading/4-to-5.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Version 4 to 5
==============

A few public things changed. That's why the creation of another major version was required.

* The ``$connector`` dependency in ``Jtl\Connector\Core\Application\Application`` class moved from constructor to ``run()`` method. In this way an application can get instantiated without any knowledge about a specific connector.
* The properties ``$request`` and ``$response`` in ``Jtl\Connector\Core\Application\Application`` class were renamed to ``$httpRequest`` and ``$httpResponse``, due to better understanding. So the method ``setRequest()`` was changed to ``setHttpRequest()`` as well.
* The method ``addIdentificationString()`` was replaced by ``setIdentificationString()`` and ``setIdentificationStringBySubject()`` and the ``$mainLanguageIso`` argument on the ``getIdentificationStrings()`` method was removed in ``Jtl\Connector\Core\Model\AbstractModel``.
* The optional argument ``$mainLanguageIso`` in the ``getIdentificationStrings()`` method was removed in ``Jtl\Connector\Core\Model\AbstractModel``. First available translation will be taken instead.
* All classes from the ``Jtl\Connector\Core\Type`` namespace were removed and replaced by reflection.
* Use of the class ``Jtl\Connector\Core\Model\TranslatableAttribute`` was simplified. A new property `type` was added, for being able to cast attribute values. Available types are `bool`, `float`, `int`, `json` and `string` (default). Actually the `type` property can be set only in the code. Idea is that `type` property can be set by JTL-Wawi in future.
9 changes: 9 additions & 0 deletions upgrading/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Upgrading
=========

.. toctree::
:hidden:

4-to-5

.. include:: /upgrading/map.rst.inc
1 change: 1 addition & 0 deletions upgrading/map.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* :doc:`/upgrading/4-to-5`

0 comments on commit bfa7782

Please sign in to comment.