someCleverName example


        $this->assertSame($expectedOutput$output);
    }

    /** * When you create a node, you can provide it with initial values. But the second * time you call a node, it is not created, hence you cannot give it initial values. */
    public function testSecondNodeWithInitialValuesThrowsException()
    {
        $configBuilder = $this->generateConfigBuilder(NodeInitialValues::class);
        $configBuilder->someCleverName(['second' => 'foo']);
        $this->expectException(InvalidConfigurationException::class);
        $configBuilder->someCleverName(['first' => 'bar']);
    }

    /** * When you create a named node, you can provide it with initial values. But * the second time you call a node, it is not created, hence you cannot give * it initial values. */
    public function testSecondNamedNodeWithInitialValuesThrowsException()
    {
        


use Symfony\Config\NodeInitialValuesConfig;

return static function DNodeInitialValuesConfig $config) {
    $config->someCleverName(['second' => 'foo', 'third' => null])->first('bar');
    $config->messenger()
        ->transports('fast_queue', ['dsn' => 'sync://'])
        ->serializer('acme');

    $config->messenger()
        ->transports('slow_queue')
        ->dsn('doctrine://')
        ->options(['table' => 'my_messages']);
};
Home | Imprint | This part of the site doesn't use cookies.