Skip to content

PHP Fatal error: Interface 'Assetic\Factory\Worker\WorkerInterface' not found. #901

@jarrettj

Description

@jarrettj

Hey,

Good day.

Seems kriswallsmith assetic has been replaced by assetic-php. I have a custom LastModifiedStrategy which worked fine but now throws the error:

PHP Fatal error:  Interface 'Assetic\Factory\Worker\WorkerInterface' not found...

If I replace the Assetic\Factory\Worker\WorkerInterface with Assetic\Contracts\Factory\Worker\WorkerInterface instead, the new error is:

Argument 1 passed to AsseticBundle\Service::setCacheBusterStrategy() must be an instance of Assetic\Factory\Worker\WorkerInterface

Been trying to revert my composer file to a previous version, but can't seem to get kriswallsmith version installed again.

Any assistance would be much appreciated, thanks.

Regards.
Jarrett

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions