src/CLI/InitCommand.php
private static function checkQueuesConfiguration(array $configuration)
    {
        Assertion::keyIsset($configuration, 'queues', 'You must provide a `queues` configuration');

        $queues = $configuration['queues'];
        Assertion::isArray($queues, 'The `queues` configuration must be an array');

        /** @var string[]|string[][] $queues */
        foreach ($queues as $queueInformation) {
            if (is_string($queueInformation)) {
                continue;
            }
            Assertion::keyIsset($queueInformation, 'name', 'You must provide a name for the queue');
        }
    }
private static function checkQueuesConfiguration(array $configuration)
    {
        Assertion::keyIsset($configuration, 'queues', 'You must provide a `queues` configuration');

        $queues = $configuration['queues'];
        Assertion::isArray($queues, 'The `queues` configuration must be an array');

        /** @var string[]|string[][] $queues */
        foreach ($queues as $queueInformation) {
            if (is_string($queueInformation)) {
                continue;
            }
            Assertion::keyIsset($queueInformation, 'name', 'You must provide a name for the queue');
        }
    }
@param array $configuration

@throws AssertionFailedException