summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-10-25 15:40:19 +0200
committerRemi Collet <fedora@famillecollet.com>2016-10-25 15:40:19 +0200
commit6f62f6ca17b81e88450232c4b8f6d3e0bf793050 (patch)
treee95f32a91c22428808f14f2cfd0639d91561cff0
parentbbfc8ca104f33e94e9d6457f10f66eb509f216ef (diff)
php-symfony: fix autoloader
-rw-r--r--php-symfony.spec13
1 files changed, 12 insertions, 1 deletions
diff --git a/php-symfony.spec b/php-symfony.spec
index 06e5fcd..5fcf31f 100644
--- a/php-symfony.spec
+++ b/php-symfony.spec
@@ -106,7 +106,7 @@
Name: php-%{composer_project}
Version: %{github_version}
-Release: 1%{?dist}
+Release: 3%{?dist}
Summary: PHP framework for web projects
Group: Development/Libraries
@@ -1807,6 +1807,14 @@ cat << 'AUTOLOAD' | tee src/Symfony/autoload.php
require_once __DIR__ . '/Component/autoload.php';
+if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) {
+ if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) {
+ require_once __DIR__ . '/ClassLoader/ClassLoader.php';
+ }
+
+ $fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader();
+ $fedoraClassLoader->register();
+}
$fedoraClassLoader->addPrefix('Symfony\\', dirname(__DIR__));
// Dependency autoloaders
@@ -2678,6 +2686,9 @@ exit $RET
# ##############################################################################
%changelog
+* Tue Oct 25 2016 Remi Collet <remi@fedoraproject.org> - 2.8.12-3
+- fix autoloader
+
* Tue Oct 4 2016 Remi Collet <remi@fedoraproject.org> - 2.8.12-1
- Update to 2.8.12
- raise dependency on twig 1.26