diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index c69fc6a..b4ed62d 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -3,7 +3,6 @@ namespace App\Providers; use Inertia\Inertia; -use OpenPsa\Ranger\Ranger; use Carbon\CarbonImmutable; use Illuminate\Support\Collection; use Illuminate\Pagination\UrlWindow; @@ -54,7 +53,6 @@ class AppServiceProvider extends ServiceProvider }); $this->registerLengthAwarePaginator(); - $this->registerCarbonMarcos(); } protected function registerLengthAwarePaginator() @@ -128,14 +126,4 @@ class AppServiceProvider extends ServiceProvider }; }); } - - protected function registerCarbonMarcos() - { - CarbonImmutable::macro('range', function ($to) { - return (new Ranger('en'))->format( - $this->toDateString(), - $to->toDateString() - ); - }); - } } diff --git a/composer.json b/composer.json index 3424008..20db9bb 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,6 @@ "inertiajs/inertia-laravel": "dev-master", "laravel/framework": "5.8.*", "laravel/tinker": "^1.0", - "openpsa/ranger": "^0.4.0", "reinink/remember-query-strings": "^0.1.0", "tightenco/ziggy": "^0.6.9" }, diff --git a/composer.lock b/composer.lock index e37b7c5..6ab985e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "59c0329fa4c0fd62d2b0fd0eb3fb167c", + "content-hash": "1e43fb8319fde39e81c34881865fe457", "packages": [ { "name": "dnoegel/php-xdg-base-dir", @@ -1040,48 +1040,6 @@ ], "time": "2019-02-16T20:54:15+00:00" }, - { - "name": "openpsa/ranger", - "version": "v0.4.0", - "source": { - "type": "git", - "url": "https://github.com/flack/ranger.git", - "reference": "c0af25836e5923ee69f57ce4a8ff740b19ecfad6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/flack/ranger/zipball/c0af25836e5923ee69f57ce4a8ff740b19ecfad6", - "reference": "c0af25836e5923ee69f57ce4a8ff740b19ecfad6", - "shasum": "" - }, - "require": { - "php": ">=5.4.0", - "symfony/intl": "~2.6|~3.4|~4.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "OpenPsa\\Ranger\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Andreas Flack", - "email": "flack@contentcontrol-berlin.de", - "homepage": "http://www.contentcontrol-berlin.de/" - } - ], - "description": "Formatter for date and time ranges with i18n support", - "keywords": [ - "date range", - "time range" - ], - "time": "2018-07-23T12:30:50+00:00" - }, { "name": "opis/closure", "version": "3.2.0", @@ -2148,81 +2106,6 @@ "homepage": "https://symfony.com", "time": "2019-05-01T13:31:08+00:00" }, - { - "name": "symfony/intl", - "version": "v4.2.8", - "source": { - "type": "git", - "url": "https://github.com/symfony/intl.git", - "reference": "14c5883fd9555d9cf50d35a1118bbd56901ea24b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/intl/zipball/14c5883fd9555d9cf50d35a1118bbd56901ea24b", - "reference": "14c5883fd9555d9cf50d35a1118bbd56901ea24b", - "shasum": "" - }, - "require": { - "php": "^7.1.3", - "symfony/polyfill-intl-icu": "~1.0" - }, - "require-dev": { - "symfony/filesystem": "~3.4|~4.0" - }, - "suggest": { - "ext-intl": "to use the component with locales other than \"en\"" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.2-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Intl\\": "" - }, - "classmap": [ - "Resources/stubs" - ], - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - }, - { - "name": "Eriksen Costa", - "email": "eriksen.costa@infranology.com.br" - }, - { - "name": "Igor Wiedler", - "email": "igor@wiedler.ch" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A PHP replacement layer for the C intl extension that includes additional data from the ICU library.", - "homepage": "https://symfony.com", - "keywords": [ - "i18n", - "icu", - "internationalization", - "intl", - "l10n", - "localization" - ], - "time": "2019-04-27T11:48:17+00:00" - }, { "name": "symfony/polyfill-ctype", "version": "v1.11.0", @@ -2340,64 +2223,6 @@ ], "time": "2019-02-06T07:57:58+00:00" }, - { - "name": "symfony/polyfill-intl-icu", - "version": "v1.11.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-intl-icu.git", - "reference": "999878a3a09d73cae157b0cf89bb6fb2cc073057" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/999878a3a09d73cae157b0cf89bb6fb2cc073057", - "reference": "999878a3a09d73cae157b0cf89bb6fb2cc073057", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "symfony/intl": "~2.3|~3.0|~4.0" - }, - "suggest": { - "ext-intl": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.9-dev" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for intl's ICU-related data and classes", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "icu", - "intl", - "polyfill", - "portable", - "shim" - ], - "time": "2019-01-07T19:39:47+00:00" - }, { "name": "symfony/polyfill-intl-idn", "version": "v1.11.0",