Code Duplication    Length = 7-10 lines in 3 locations

src/ServiceContainer/SymfonyExtension.php 3 locations

@@ 137-146 (lines=10) @@
134
    /**
135
     * @param ContainerBuilder $container
136
     */
137
    private function loadKernelContainer(ContainerBuilder $container)
138
    {
139
        $containerDefinition = new Definition(Container::class);
140
        $containerDefinition->setFactory([
141
            new Reference(self::KERNEL_ID),
142
            'getContainer',
143
        ]);
144
145
        $container->setDefinition(self::KERNEL_CONTAINER_ID, $containerDefinition);
146
    }
147
148
    /**
149
     * @param ContainerBuilder $container
@@ 167-176 (lines=10) @@
164
    /**
165
     * @param ContainerBuilder $container
166
     */
167
    private function loadSharedKernelContainer(ContainerBuilder $container)
168
    {
169
        $containerDefinition = new Definition(Container::class);
170
        $containerDefinition->setFactory([
171
            new Reference(self::SHARED_KERNEL_ID),
172
            'getContainer',
173
        ]);
174
175
        $container->setDefinition(self::SHARED_KERNEL_CONTAINER_ID, $containerDefinition);
176
    }
177
178
    /**
179
     * @param ContainerBuilder $container
@@ 181-187 (lines=7) @@
178
    /**
179
     * @param ContainerBuilder $container
180
     */
181
    private function loadKernelRebooter(ContainerBuilder $container)
182
    {
183
        $definition = new Definition(KernelRebooter::class, [new Reference(self::KERNEL_ID)]);
184
        $definition->addTag(EventDispatcherExtension::SUBSCRIBER_TAG);
185
186
        $container->setDefinition(self::KERNEL_ID . '.rebooter', $definition);
187
    }
188
189
    /**
190
     * @param ExtensionManager $extensionManager