Skip to content

Whitelist vendor classes for aliasing #76

@jasonvarga

Description

@jasonvarga

I'm frequently using Tinker to deal with classes from a package, but the aliasing doesn't happen for classes within vendor.

How about config array that whitelists some classes (and/or namespaces).

'alias' => [
   'Statamic\Entries\Entry',
]

I'm happy to PR this myself, but just wanted to ask before doing so.

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