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

can't autowire $imageProcessor #43

Closed
tacman opened this issue Jan 23, 2024 · 3 comments
Closed

can't autowire $imageProcessor #43

tacman opened this issue Jan 23, 2024 · 3 comments

Comments

@tacman
Copy link
Contributor

tacman commented Jan 23, 2024

Version(s) affected

1.0-dev

Description

Can't install

Cannot autowire service "SpomkyLabs\PwaBundle\Command\CreateIconsCommand":
!! argument "$imageProcessor

How to reproduce

composer require Spomky-Labs/phpwa
./composer.json has been updated
Running composer update spomky-labs/phpwa
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals

  • Locking spomky-labs/phpwa (1.0.x-dev 89c8992)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 1 install, 0 updates, 0 removals
  • Installing spomky-labs/phpwa (1.0.x-dev 89c8992): Extracting archive
    Generating autoload files
    113 packages you are using are looking for funding.
    Use the composer fund command to find out more!

Symfony operations: 1 recipe (157135572b17d2b5d8d523f4d94c12ba)

  • Configuring spomky-labs/phpwa (>=1.0.x-dev): From auto-generated recipe
    Executing script cache:clear [KO]
    [KO]
    Script cache:clear returned with error code 1
    !!
    !! In DefinitionErrorExceptionPass.php line 48:
    !!
    !! Cannot autowire service "SpomkyLabs\PwaBundle\Command\CreateIconsCommand":
    !! argument "$imageProcessor" of method "__construct()" references interface "
    !! SpomkyLabs\PwaBundle\ImageProcessor\ImageProcessor" but no such service exi
    !! sts. You should maybe alias this interface to one of these existing service
    !! s: "SpomkyLabs\PwaBundle\ImageProcessor\ImagickImageProcessor", "SpomkyLabs
    !! \PwaBundle\ImageProcessor\GDImageProcessor".
    !!
    !!
    !!
    Script @auto-scripts was called via post-update-cmd

Possible Solution

No response

Additional Context

No response

@Spomky
Copy link
Member

Spomky commented Jan 23, 2024

Indeed. This should be fixed in the last version

@tacman
Copy link
Contributor Author

tacman commented Jan 23, 2024

yep, installs now, thanks!

@tacman tacman closed this as completed Jan 23, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants