public static function validate(IOInterface $io, RootPackageInterface $package, $commandName = null)
    {
        if (null === $commandName || \in_array($commandName, array('install', 'update', 'validate', 'require', 'remove'), true)) {
            $extra = (array) $package->getExtra();

            foreach (self::$deprecatedOptions as $new => $old) {
                if (\array_key_exists($old, $extra)) {
                    $io->write(sprintf('<warning>The "extra.%s" option is deprecated, use the "config.fxp-asset.%s" option</warning>', $old, $new));
                }
            }
        }
    }
public static function validate(IOInterface $io, RootPackageInterface $package, $commandName = null)
    {
        if (null === $commandName || \in_array($commandName, array('install', 'update', 'validate', 'require', 'remove'), true)) {
            $extra = (array) $package->getExtra();

            foreach (self::$deprecatedOptions as $new => $old) {
                if (\array_key_exists($old, $extra)) {
                    $io->write(sprintf('<warning>The "extra.%s" option is deprecated, use the "config.fxp-asset.%s" option</warning>', $old, $new));
                }
            }
        }
    }
public static function validate ( IOInterface $ io , RootPackageInterface $ package , $ commandName = null ) { if ( null === $ commandName || \ in_array ( $ commandName , array ( 'install' , 'update' , 'validate' , 'require' , 'remove' ) , true ) ) { $ extra = ( array ) $ package -> getExtra ( ) ; foreach ( self :: $ deprecatedOptions as $ new => $ old ) { if ( \ array_key_exists ( $ old , $ extra ) ) { $ io -> write ( sprintf ( '<warning>The "extra.%s" option is deprecated, use the "config.fxp-asset.%s" option</warning>' , $ old , $ new ) ) ; } } } }
Validate the config of root package.

@param IOInterface          $io          The composer input/output
@param RootPackageInterface $package     The root package
@param string               $commandName The command name
Validate the config of root package .