Skip to content

Can't load custom extension class #772

Closed
@ghost

Description

It appears that you can no longer load customer extension classes from XML files, like this:

    <source_model>Inchoo\Stripe\Model\Source\Cctype</source_model>

Error is:
Class Inchoo\Stripe\Model\Source\Cctype does not exist

For example, In a custom extension, etc/adminhtml/system.xml there are a few lines like this:

            <field id="cctypes" translate="label" type="multiselect" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="0">
                <label>Credit Card Types</label>
                <source_model>Inchoo\Stripe\Model\Source\Cctype</source_model>
            </field>

(File exists, in /app/code/Inchoo/Stripe/Model/Source/Cctype.php, namespace and class name are OK)

See
https://github.com/ivanweiler/Inchoo_Stripe

It used to work in an earlier Magento2 build... what changed?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions