Skip to content

The CLI utility for overriding classes from vendor by namespace.

License

Notifications You must be signed in to change notification settings

YakutD/overrider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The utility is designed for convenient redefinition of classes from the vendor by copying them to the overriden directory in the root of the project and adding them to the classmap, which ensures the priority of such classes over their originals in the autoloader. If the overriden directory does not exist, the utility will create it.

Usage:

php vendor/bin/overrider --namespace="Foo\Bar\Baz" [-r, --recursive]

--namespace         Required, accepts the namespace of a class that must already be registered with the autoloader.
-r, --recursive     Optional, generates directories for the overridden class in accordance with the PSR-0.

Make sure you are running the utility from the project root, the composer.json file is available, and the overridden class is already registered in the autoloader.

About

The CLI utility for overriding classes from vendor by namespace.

Resources

License

Stars

Watchers

Forks

Packages

No packages published