Skip to content

Commit

Permalink
[BUGFIX] Use interface_exists instead of class_exists for PSR Interfa…
Browse files Browse the repository at this point in the history
…ce check in ext_localconf.php

fixes #212
  • Loading branch information
twojtylak authored and andreaskienast committed Aug 6, 2021
1 parent e0a3b2a commit 3020ced
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
/***************
* Load Dependencies
*/
if (!class_exists('Psr\Http\Client\ClientInterface') ||
!class_exists('Psr\Http\Message\RequestInterface') ||
!class_exists('Psr\Http\Message\RequestFactoryInterface')
if (!interface_exists('Psr\Http\Client\ClientInterface') ||
!interface_exists('Psr\Http\Message\RequestInterface') ||
!interface_exists('Psr\Http\Message\RequestFactoryInterface')
) {
require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('blog') . '/Resources/Private/PHP/vendor/autoload.php';
}
Expand Down

0 comments on commit 3020ced

Please sign in to comment.