ceesvanegmond / minify

A PHP package for minifying your .css and .js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call to undefined method CeesVanEgmond\Minify\Minify::stylesheetDir()

mintaras opened this issue · comments

I've added this line to providers:

'CeesVanEgmond\Minify\MinifyServiceProvider',

Published configs:
$ php artisan config:publish ceesvanegmond/minify

Use case in my view:
{{ Minify::stylesheetDir('/css/') }}

My composer.json:

{
    "require": {
        "netson/l4gettext": "dev-master",
        "raveren/kint": "dev-master",
        "laravel/framework": "4.0.*",
        "barryvdh/laravel-ide-helper": "1.*",
        "leafo/lessphp": "0.4.*@dev",
        "aws/aws-sdk-php-laravel": "1.*",
        "ceesvanegmond/minify": "2.0.*"
    },
    "autoload": {
        "classmap": [
            "app/commands",
            "app/controllers",
            "app/models",
            "app/forms",
            "app/database/migrations",
            "app/database/seeds",
            "app/tests/TestCase.php",
            "app/library"
        ],
        "psr-0": {
            "Plupload": "app/library/Plupload/"
        }
    },
    "scripts": {
        "pre-update-cmd": [
            "php artisan clear-compiled"
        ],
        "post-install-cmd": [
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan optimize"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "stable"
}

Did you try compser dump-autoload?

I have the same issue after

composer dump-autoload

autoload_namespaces.php

    ...,
    'CeesVanEgmond\\Minify' => array($vendorDir . '/ceesvanegmond/minify/src'),
    ...,

It's strange that autoload_classmap.php does not hold any reference to CeesVanEgmond classes

This seems to be working

{{ Minify::stylesheet('main.css') }}
but not the
{{ Minify::stylesheetDir('/css/') }}
And I can't find "..Dir()" methods anywhere..