Skip to content

[SF 2.7][ContainerDebug] app/console debug:container --parameter=[..] output truncated #16379

@PapsOu

Description

@PapsOu

When dumping container parameters with this command :

app/console debug:container --parameters

The output is truncated for array parameters.

Output example :

twig.form.renderer.class       Symfony\Bridge\Twig\Form\TwigRenderer
twig.form.resources            ["form_div_layout.html.twig","SonataCoreBundle:Form:datepick...  
twig.loader.chain.class        Twig_Loader_Chain 
twig.loader.filesystem.class   Symfony\Bundle\TwigBundle\Loader\FilesystemLoader

Using --format=json disable the truncated output.

"twig.form.renderer.class": "Symfony\\Bridge\\Twig\\Form\\TwigRenderer",
"twig.form.resources": [
    "form_div_layout.html.twig",
    "SonataCoreBundle:Form:datepicker.html.twig",
    "bootstrap_3_layout.html.twig",
    "SonataUserBundle:Form:form_admin_fields.html.twig"
],
"twig.loader.chain.class": "Twig_Loader_Chain",
"twig.loader.filesystem.class": "Symfony\\Bundle\\TwigBundle\\Loader\\FilesystemLoader",

But, using app/console debug:container --parameter="twig.form.resources" --format=json the output is truncated again.

{
    "twig.form.resources": "[\"form_div_layout.html.twig\",\"SonataCoreBundle:Form:datepick..."
}

Can you reproduce this behavior ?

Maybe adding command option, like « --full » for displaying full output ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions