Skip to content

[Bug]: Error in the current installation instructions ".lazy.data_collector.dump" #247

@Nikolayya

Description

@Nikolayya

Expected behavior

COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/skeleton my-project
cd ./my-project
./vendor/bin/pimcore-install

Actual behavior

Error in the current installation instructions

In the current configuration, the following error occurs when installing the skeleton with the given Composer.json:

Symfony\Component\DependencyInjection\Exception\InvalidArgumentException {#7581
  #message: "Cannot generate lazy proxy for service ".lazy.data_collector.dump"."
  #code: 0
  #file: "./vendor/symfony/dependency-injection/LazyProxy/PhpDumper/LazyServiceDumper.php"
  #line: 138
  -previous: Symfony\Component\VarExporter\Exception\LogicException {#7607
    #message: "Cannot generate lazy proxy: method "Symfony\Component\HttpKernel\DataCollector\DumpDataCollector::serialize()" is final."
    #code: 0
    #file: "./vendor/symfony/var-exporter/ProxyHelper.php"
    #line: 268
    trace: {
      ./vendor/symfony/var-exporter/ProxyHelper.php:268 { …}
      ./vendor/symfony/dependency-injection/LazyProxy/PhpDumper/LazyServiceDumper.php:136 { …}
   ... 

Steps to reproduce

Create a new instance with the specified environment

A temporary solution is a conflict rule in Composer.json.

"conflict": {
	"symfony/dependency-injection": "6.4.* || 7.4.*"
},

It's not the cleanest solution, but at least it works.
Many thanks for fixing it.

Best regards, Nikolaus

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions