Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony 2 Assetic Fatal error: Class 'Assetic\Util\PathUtils' not found on asset dump

I'm using Symfony version 2.1.10 with Assetic and after the last composer update I get the follwoing error when I try to run php app/console assetic:dump

Dumping all dev assets.
Debug mode is on.
Fatal error: Class 'Assetic\Util\PathUtils' not found in /vendor/symfony/assetic-bundle/Symfony/Bundle/AsseticBundle/Command/DumpCommand.php on line 216

I have no idea what is going wrong here. I checkt the GitHub issue page of Assetic and Symfony 2 and couldn't find any information ...

config.yml:

# Assetic Configuration
assetic:
    debug:          "%kernel.debug%"
    use_controller: false
    bundles:        ['FOSUserBundle', 'vaamoLandingPageBundle']
    #java: /usr/bin/java
    filters:
        cssrewrite: ~
        #closure:
        #    jar: "%kernel.root_dir%/Resources/java/compiler.jar"
        #yui_css:
        #    jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"

composer.js:

"require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.1.*",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "1.1.*",
        "twig/extensions": "1.0.*@dev",
        "symfony/assetic-bundle": "2.1.*",
        ...
    },
like image 417
wowpatrick Avatar asked May 20 '13 18:05

wowpatrick


1 Answers

Change

"symfony/assetic-bundle": "2.1.*"

to

"symfony/assetic-bundle": "2.3.*"

than it should work

like image 190
Kasitt Avatar answered Oct 23 '22 02:10

Kasitt