Skip to content

Set table fallback classes in bootstrap instead of relying on app template to do it #1044

@LordSimal

Description

@LordSimal

Description

Till now we had the following in all our app templates

if (PHP_SAPI !== 'cli') {
    FactoryLocator::add('Table', (new TableLocator())->allowFallbackClass(false));
}

but to clean this up (and don't make users questions why this kind of weird code is in the app template) we could move this to the bootstrap hook of the plugin via just adding

// We need fallback classes for baking code
FactoryLocator::add('Table', (new TableLocator())->allowFallbackClass(true));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions