src/Viserio/Component/OptionsResolver/Command/OptionReaderCommand.php
public function handle(): int
    {
        $className       = $this->argument('class');
        $reflectionClass = new ReflectionClass($className);

        $configs = (new OptionsReader())->readConfig($reflectionClass);

        if (\count($configs) !== 0) {
            $interfaces = \array_flip($reflectionClass->getInterfaceNames());

            if (isset($interfaces[RequiresComponentConfigContract::class])) {
                $dimensions = $className::getDimensions();
                $configs    = $configs[\end($dimensions)];
            }
        }

        $this->info('Output array:' . \PHP_EOL . \PHP_EOL . VarExporter::export($configs));

        return 0;
    }
public function handle(): int
    {
        $className       = $this->argument('class');
        $reflectionClass = new ReflectionClass($className);

        $configs = (new OptionsReader())->readConfig($reflectionClass);

        if (\count($configs) !== 0) {
            $interfaces = \array_flip($reflectionClass->getInterfaceNames());

            if (isset($interfaces[RequiresComponentConfigContract::class])) {
                $dimensions = $className::getDimensions();
                $configs    = $configs[\end($dimensions)];
            }
        }

        $this->info('Output array:' . \PHP_EOL . \PHP_EOL . VarExporter::export($configs));

        return 0;
    }
{@inheritdoc}