[GH-ISSUE #176] Remove composer's autoload section for Smarty #141

Closed
opened 2026-02-26 09:36:14 +03:00 by kerem · 1 comment
Owner

Originally created by @PhrozenByte on GitHub (Apr 2, 2016).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/176

ViMbAdmin's composer.json currently contains a autoloader section for Smarty:

    "autoload": {
        "classmap": [
            "vendor/smarty/smarty/libs/Smarty.class.php",
            "vendor/smarty/smarty/libs/SmartyBC.class.php",
            "vendor/smarty/smarty/libs/sysplugins/smarty_security.php"
        ]
    }

However, this isn't necessary anymore because Smarty now (I've no idea since when) registers its autoloader itself, see https://github.com/smarty-php/smarty/blob/v3.1.29/composer.json#L30-L36

I think this is a leftover from d91b97f (see #168/#169). You can safely remove the whole autoload section.

Originally created by @PhrozenByte on GitHub (Apr 2, 2016). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/176 ViMbAdmin's `composer.json` currently contains a autoloader section for Smarty: ``` json "autoload": { "classmap": [ "vendor/smarty/smarty/libs/Smarty.class.php", "vendor/smarty/smarty/libs/SmartyBC.class.php", "vendor/smarty/smarty/libs/sysplugins/smarty_security.php" ] } ``` However, this isn't necessary anymore because Smarty now (I've no idea since when) registers its autoloader itself, see https://github.com/smarty-php/smarty/blob/v3.1.29/composer.json#L30-L36 I think this is a leftover from d91b97f (see #168/#169). You can safely remove the whole `autoload` section.
kerem closed this issue 2026-02-26 09:36:14 +03:00
Author
Owner

@barryo commented on GitHub (Apr 3, 2016):

Thanks @PhrozenByte 👍

<!-- gh-comment-id:204923261 --> @barryo commented on GitHub (Apr 3, 2016): Thanks @PhrozenByte :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#141
No description provided.