diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-10-30 18:05:33 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-10-30 18:05:33 +0100 |
commit | b7e6500f7674768eb53b0cacaad983be98bd7059 (patch) | |
tree | f9c1e29936eae10112a51aca8bc24b39291b8e11 | |
parent | 74f685450227d86111d6dfa4b75c5c589bcfc277 (diff) |
php-cs-fixer: 1.12.3
-rw-r--r-- | php-cs-fixer-autoload.php | 20 | ||||
-rw-r--r-- | php-cs-fixer.spec | 12 |
2 files changed, 14 insertions, 18 deletions
diff --git a/php-cs-fixer-autoload.php b/php-cs-fixer-autoload.php index dcaa350..5523869 100644 --- a/php-cs-fixer-autoload.php +++ b/php-cs-fixer-autoload.php @@ -1,20 +1,12 @@ <?php /* Autoloader for friendsofphp/php-cs-fixer and its dependencies */ -$vendorDir = '/usr/share/php'; -// Use Symfony autoloader -if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) { - if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) { - require_once $vendorDir . '/Symfony/Component/ClassLoader/ClassLoader.php'; - } +require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; - $fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader(); - $fedoraClassLoader->register(); -} +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\CS\\', __DIR__); -$fedoraClassLoader->addPrefix('Symfony\\CS\\', dirname(dirname(__DIR__))); - -// Dependencies -require_once $vendorDir . '/Symfony/Component/autoload.php'; -require_once $vendorDir . '/SebastianBergmann/Diff/autoload.php'; +\Fedora\Autoloader\Dependencies::required(array( + '/usr/share/php/Symfony/Component/autoload.php', + '/usr/share/php/SebastianBergmann/Diff/autoload.php', +)); diff --git a/php-cs-fixer.spec b/php-cs-fixer.spec index 2e01110..7e106c0 100644 --- a/php-cs-fixer.spec +++ b/php-cs-fixer.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit baa7112bef3b86c65fcfaae9a7a50436e3902b41 +%global gh_commit 78a820c16d13f593303511461eefa939502fb2de %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20150717 %global gh_owner FriendsOfPHP @@ -15,7 +15,7 @@ %global with_tests 0%{!?_without_tests:1} Name: php-cs-fixer -Version: 1.12.2 +Version: 1.12.3 Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist} Summary: A tool to automatically fix PHP code style @@ -55,7 +55,7 @@ BuildRequires: php-xml # "satooshi/php-coveralls": "^1.0" BuildRequires: php-composer(phpunit/phpunit) >= 4.5 # Autoloader -BuildRequires: php-composer(symfony/class-loader) +BuildRequires: php-composer(fedora/autoloader) %endif # From composer.json, "require": { @@ -87,7 +87,7 @@ Requires: php-phar Requires: php-spl Requires: php-xml # Autoloader -Requires: php-composer(symfony/class-loader) +Requires: php-composer(fedora/autoloader) Provides: php-composer(friendsofphp/php-cs-fixer) = %{version} @@ -167,6 +167,10 @@ rm -rf %{buildroot} %changelog +* Sun Oct 30 2016 Remi Collet <remi@fedoraproject.org> - 1.12.3-1 +- update to 1.12.3 +- switch from symfony/class-loader to fedora/autoloader + * Tue Sep 27 2016 Remi Collet <remi@fedoraproject.org> - 1.12.2-1 - update to 1.12.2 |