Code Monkey home page Code Monkey logo

filerevbundle's People

Contributors

bartvb avatar bezoerb avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

filerevbundle's Issues

asset packages not supported

Hi Ben, I'm working on a PR to support custom asset packages however I've encountered an issue related to base_path (not just for custom packages).

Use case
3rd-party bundles use default package, nothing special here. My front-end bundle, uses package with different basePath. This could possibly be also a CDN base_url for my front-end assets. Resources retrieved with {{ asset('css/style.css', 'mad') }} are then prefixed with the path configured for "mad" package. The configuration is straightforward:

framework:
    assets:
        packages:
            mad:
                base_path: /assets

Problem
Prefixing the base_path! In the old codebase you've had $file = $this->basePath . '/' . $path; in applyVersion() method of PathPackage. Currently, the responsibility for prefixing is left on Asset component (what I think is in tact with Symfony's intention when introducing VersionStrategyInterface) and so the path that comes to applyVersion() as an argument is un-prefixed. This however causes if (file_exists($absReved)) to fail because the path is incorrect - it lacks the prefix. This obviously results into unmatched entry in catalogue as well.

Any help is highly appreciated. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.