src/Finite/Bundle/FiniteBundle/DependencyInjection/FiniteFiniteExtension.php
protected function removeDisabledCallbacks(array $config)
    {
        if (!isset($config['callbacks'])) {
            return $config;
        }

        foreach (array('before', 'after') as $position) {
            foreach ($config['callbacks'][$position] as $i => $callback) {
                if ($callback['disabled']) {
                    unset($config['callbacks'][$position][$i]);
                }
                unset($config['callbacks'][$position][$i]['disabled']);
            }
        }

        return $config;
    }
protected function removeDisabledCallbacks(array $config)
    {
        if (!isset($config['callbacks'])) {
            return $config;
        }

        foreach (array('before', 'after') as $position) {
            foreach ($config['callbacks'][$position] as $i => $callback) {
                if ($callback['disabled']) {
                    unset($config['callbacks'][$position][$i]);
                }
                unset($config['callbacks'][$position][$i]['disabled']);
            }
        }

        return $config;
    }
protected function removeDisabledCallbacks ( array $ config ) { if ( ! isset ( $ config [ 'callbacks' ] ) ) { return $ config ; } foreach ( array ( 'before' , 'after' ) as $ position ) { foreach ( $ config [ 'callbacks' ] [ $ position ] as $ i => $ callback ) { if ( $ callback [ 'disabled' ] ) { unset ( $ config [ 'callbacks' ] [ $ position ] [ $ i ] ) ; } unset ( $ config [ 'callbacks' ] [ $ position ] [ $ i ] [ 'disabled' ] ) ; } } return $ config ; }
Remove callback entries where index 'disabled' is set to true.

@param array $config

@return array
Remove callback entries where index disabled is set to true .