-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Issue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passednon-issue
Description
Preconditions
- Magento 2.2-rc3.0
Steps to reproduce
- Upload any library to the lib/internal directory, in our case - GeoIP and MaxMind libraries.
- Use the same libraries as you are can currently using in magento 2.1.x:
use GeoIp2\Database\Reader as GeoIP2Reader;
...
$reader = new GeoIP2Reader($dbPath, ['en']);
Expected result
- $reader is the object of the Reader class
Actual result
- Error: GeoIp2\Database\Reader class not found
It seems that for magento 2.2 in Magento\Framework\Autoload\Populator::populateMappings()
the following adding include path for lib/internal was removed.
We use the lib/internal directory for libraries in our “ready-to-paste” package version, and now we are confused.
Is it bug? Or we currently need to add libraries to the new “generated” directory (it seems improbable).
Metadata
Metadata
Assignees
Labels
Issue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passednon-issue