<?php

namespace Oro\Bundle\ChartBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

use Oro\Component\Config\Loader\CumulativeConfigLoader;
use Oro\Component\Config\Loader\YamlCumulativeFileLoader;

class OroChartExtension extends Extension
{
    /**
     * {@inheritdoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $chartConfigs = array();

        $configLoader = new CumulativeConfigLoader(
            'oro_chart',
            new YamlCumulativeFileLoader('Resources/config/oro/chart.yml')
        );

        $resources = $configLoader->load($container);
        foreach ($resources as $resource) {
            $chartConfigs[] = $resource->data['oro_chart'];
        }

        foreach ($configs as $config) {
            $chartConfigs[] = $config;
        }

        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $chartConfigs);

        $container->getDefinition('oro_chart.config_provider')->replaceArgument(0, $config);
    }
}

<?php

namespace Oro\Bundle\ChartBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Config\FileLocator;

use Oro\Component\Config\Loader\CumulativeConfigLoader;
use Oro\Component\Config\Loader\YamlCumulativeFileLoader;

class OroChartExtension extends Extension
{
    /**
     * {@inheritdoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.yml');

        $chartConfigs = array();

        $configLoader = new CumulativeConfigLoader(
            'oro_chart',
            new YamlCumulativeFileLoader('Resources/config/oro/chart.yml')
        );

        $resources = $configLoader->load($container);
        foreach ($resources as $resource) {
            $chartConfigs[] = $resource->data['oro_chart'];
        }

        foreach ($configs as $config) {
            $chartConfigs[] = $config;
        }

        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $chartConfigs);

        $container->getDefinition('oro_chart.config_provider')->replaceArgument(0, $config);
    }
}

Add chart configuration - add missed loading of services.yml
BAP-3230: Add chart configuration
- add missed loading of services.yml
