chebur/datetime-factory

DateTimeFactoryInterface with mutable and immutable implementations

0.0.2 2020-05-25 10:05 UTC

This package is not auto-updated.

Last update: 2022-05-23 19:58:27 UTC


README

PHP requirements Latest version Total downloads License

Installation

Require it with composer:

composer require chebur/datetime-factory

Configuration

Symfony

services:
    # Alias
    Chebur\DateTimeFactory\DateTimeFactoryInterface: '@chebur.datetime_factory'

    # Service implementing DateTimeFactoryInterface, you can change it with your own implementation
    chebur.datetime_factory:
        class: Chebur\DateTimeFactory\DateTimeFactory