Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

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

Closed
mintaras opened this issue Aug 16, 2014 · 3 comments
Closed

Comments

@mintaras
Copy link

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"
}
@amalfra
Copy link
Contributor

amalfra commented Aug 17, 2014

Did you try compser dump-autoload?

@mintaras
Copy link
Author

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

@mintaras
Copy link
Author

This seems to be working

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

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

3 participants