src/DependencyInjection/Configuration.php
private function normalizeEnabled(NodeDefinition $node)
    {
        $node->beforeNormalization()
                ->always()
                ->then(
                    function ($v) {
                        if (is_string($v['enabled'])) {
                            $v['enabled'] = $v['enabled'] === 'true';
                        }
                        if (is_int($v['enabled'])) {
                            $v['enabled'] = $v['enabled'] === 1;
                        }

                        return $v;
                    }
                )
            ->end();

        return $this;
    }
private function normalizeEnabled(NodeDefinition $node)
    {
        $node->beforeNormalization()
                ->always()
                ->then(
                    function ($v) {
                        if (is_string($v['enabled'])) {
                            $v['enabled'] = $v['enabled'] === 'true';
                        }
                        if (is_int($v['enabled'])) {
                            $v['enabled'] = $v['enabled'] === 1;
                        }

                        return $v;
                    }
                )
            ->end();

        return $this;
    }
private function normalizeEnabled ( NodeDefinition $ node ) { $ node -> beforeNormalization ( ) -> always ( ) -> then ( function ( $ v ) { if ( is_string ( $ v [ 'enabled' ] ) ) { $ v [ 'enabled' ] = $ v [ 'enabled' ] === 'true' ; } if ( is_int ( $ v [ 'enabled' ] ) ) { $ v [ 'enabled' ] = $ v [ 'enabled' ] === 1 ; } return $ v ; } ) -> end ( ) ; return $ this ; }
Normalizes the enabled field to be truthy.

@param NodeDefinition $node

@return Configuration
Normalizes the enabled field to be truthy .