Cidaas / Cidaas-for-Typo3

Enables secure and convenient authentication of users in TYPO3 with cidaas. Secure – Fast – And unrivaled Swabian.
https://www.cidaas.com
GNU General Public License v2.0
4 stars 3 forks source link

require 3rd-party libraries only when not in composer mode #3

Open dmnkhhn opened 3 years ago

dmnkhhn commented 3 years ago

league-oauth2-client.phar is included even when TYPO3 runs in composer mode.

This has a serious impact on the website performance and should be fixed ASAP.

freshworkx commented 3 years ago

Should be surround by if condition (in ext_localconf.php): `

if (!defined('TYPO3_COMPOSER_MODE')) {

    $pharFileName = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Libraries/league-oauth2-client.phar';

    if (is_file($pharFileName)) {

        @include 'phar://' . $pharFileName . '/vendor/autoload.php';

    }
}