Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web_root outside not working #1521

Open
devcut opened this issue Jul 19, 2023 · 0 comments
Open

Web_root outside not working #1521

devcut opened this issue Jul 19, 2023 · 0 comments

Comments

@devcut
Copy link

devcut commented Jul 19, 2023

I try to set web_root outside public folder but the bundle continue to create folder in public.

Versions:

  1. Bundle version : 2.11
  2. PHP: 8.2

This is my configuration :

private function initLiipImagine(ContainerBuilder $container): void
    {
        $bundles = $container->getParameter('kernel.bundles');

        if (!isset($bundles['LiipImagineBundle'])) {
            return;
        }

        $container->prependExtensionConfig('liip_imagine', [
            'resolvers' => [
                'default' => [
                    'web_path' => [
                        'web_root' => $container->getParameter('kernel.project_dir').'/data',                    ],
                ],
            ],
            'loaders' => [
                'default' => [
                    'filesystem' => [
                        'data_root' => $container->getParameter('kernel.project_dir').'/data/uploads',
                        'allow_unresolvable_data_roots' => true
                    ],
                ],
            ],
            'filter_sets' => [
                'cache' => null,
                '90' => [
                    'cache' => 'default',
                    'filters' => [
                        'thumbnail' => [
                            'size' => [
                                90,
                            ],
                            'mode' => 'outbound',
                        ],
                    ],
                ],
                '150' => [
                    'cache' => 'default',
                    'filters' => [
                        'thumbnail' => [
                            'size' => [
                                150,
                            ],
                            'mode' => 'outbound',
                        ],
                    ],
                ],
            ],
        ]);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant