11/05
2017
Magento 2 bin/magento command to display configured preferences for classes or interfaces
A bin/magento command that will show you the configured preferences for classes and interfaces., (*1)
Written on a train. On the way home from #mm15nl. In about an hour. Pretty neat, hu?, (*2)
Run /bin/magento help preferences:info
to find out., (*3)
Example:, (*4)
% bin/magento preferences:info LoggerInterface Psr\Log\LoggerInterface => Magento\Framework\Logger\Monolog Magento\Framework\DB\LoggerInterface => Magento\Framework\DB\Logger\Null
composer require davidandvinai/module-preferencesinfocommand bin/magento module:enable DavidAndVinai_PreferencesInfoCommand
Why? Sin! Heresy!, (*5)
Currently the module only searches global and adminhtml scope preferences.
Adding an option to specify the preference config area is on the todo list., (*6)
David Manners & Vinai Kopp
Twitter: @VinaiKopp
Twitter: @mannersd, (*7)
BSD 3-Clause., (*8)
(c) 2017 Vinai Kopp, David Manners, (*9)