Commit cb1632db authored by Anton Smirnov's avatar Anton Smirnov
Browse files

Small doc updates

parent b9cc5016
Loading
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
@@ -160,9 +160,8 @@ A clock that returns any time generated by a closure::

    $clock->now(); // whatever callback returns

.. note:: You can do a similar logic without any library by using an anonymous class:

::
.. note::
    You can do a similar logic without any library by using an anonymous class::

        <?php

+10 −0
Original line number Diff line number Diff line
@@ -10,10 +10,18 @@ A collection of clock abstraction classes for PSR-20_.
Installation
============

PHP 8.0+:

.. code-block:: bash

   composer require 'arokettu/clock'

PHP 7.0+:

.. code-block:: bash

   composer require 'arokettu/clock:^1'

or if you only need :ref:`the system clock <system_clock_package>`:

.. code-block:: bash
@@ -23,6 +31,8 @@ or if you only need :ref:`the system clock <system_clock_package>`:
Documentation
=============

This documentation covers both 1.x and 2.x branches.

.. toctree::
   :maxdepth: 2