Skip to content

Commit

Permalink
[DOCS] Improve instanciation example (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Suter committed May 2, 2023
1 parent dfbaac5 commit 4db5224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/Developer/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ easy task. The first step is to get the proper service object:
.. code-block:: php
$registry = GeneralUtility::makeInstance(\Cobweb\Svconnector\Registry\ConnectorRegistry::class);
$connector = $registry->getServiceForType($key);
$connector = $registry->getServiceForType('csv');
The next step could be to check if the service is indeed available,
An additional step could be to check if the service is indeed available,
by calling :php:`$connector->isAvailable()`, although - in this particular
case - the CSV connector service is always available.

Expand Down

0 comments on commit 4db5224

Please sign in to comment.