Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 652 Bytes

File metadata and controls

15 lines (9 loc) · 652 Bytes

Resolve different namespaces

Level: advance

An example of how can you override gacela classes from different namespaces.

Usage

php app.php

Tech details

In this example, we are using the Facade from a third-party vendor's module (vendor\chemaclass\gacela-module-exmaple\src\Customer\CustomerFacade), and when that Facade uses its Factory, gacela will resolve it from our src\Customer directory (which is namespace: ResolveDifferentNamespaces\Customer), because we have the same module structure as that dependency, and we have defined the ResolveDifferentNamespaces as first thing in the GacelaConfig::setProjectNamespaces().