Skip to content

Error: SilverStripe\Versioned\Versioned.versioned was not found #24

@wernerkrauss

Description

@wernerkrauss

When adding the Versioned extension in code like

    private static $extensions = [
        Versioned::class . '.versioned'
    ];

I get the following error:

Class SilverStripe\Versioned\Versioned.versioned was not found while trying to analyse it - discovering symbols is probably not configured properly.

This can be fixed by defining an alias in bootstrap.php like:

class_alias(Versioned::class, Versioned::class . '.versioned');

Maybe those injector alias classes can be handled more elegantly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions