public function load(array $configs, ContainerBuilder $container)
    {
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.yaml');

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

        $expressionLanguage = new ExpressionLanguage;
        $token = [
            '["uuid"]' => Token\UuidListener::class,
            '["ip"]' => Token\IpListener::class,
            '["client"]' => Token\ClientListener::class,
            '["modifier"]' => Token\ModifierListener::class,
            '["identity"]["roles"]' => Token\Identity\RolesListener::class,
            '["identity"]["type"]' => Token\Identity\TypeListener::class,
            '["identity"]["uuid"]' => Token\Identity\UuidListener::class
        ];

        foreach ($token as $property => $class) {
            if (!$expressionLanguage->evaluate('token'.$property, ['token' => $config['token']])) {
                $container->removeDefinition($class);
            }
        }
    }
public function load(array $configs, ContainerBuilder $container)
    {
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.yaml');

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

        $expressionLanguage = new ExpressionLanguage;
        $token = [
            '["uuid"]' => Token\UuidListener::class,
            '["ip"]' => Token\IpListener::class,
            '["client"]' => Token\ClientListener::class,
            '["modifier"]' => Token\ModifierListener::class,
            '["identity"]["roles"]' => Token\Identity\RolesListener::class,
            '["identity"]["type"]' => Token\Identity\TypeListener::class,
            '["identity"]["uuid"]' => Token\Identity\UuidListener::class
        ];

        foreach ($token as $property => $class) {
            if (!$expressionLanguage->evaluate('token'.$property, ['token' => $config['token']])) {
                $container->removeDefinition($class);
            }
        }
    }
{@inheritdoc}