2017 © Pedro Peláez
 

symfony-bundle assets-bundle

Symfony AssetsBundle

image

foreverglory/assets-bundle

Symfony AssetsBundle

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

AssetsBundle

Symfony Framework extend of assets

Symfony 框架关于Assets的扩展, (*1)

Introduction

Composer

Add to composer.json in your project to require section:, (*2)

{
    "foreverglory/assets-bundle": "~0.1"
}

Add this bundle to your application's kernel

//app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Glory\Bundle\AssetsBundle\GloryAssetsBundle(),
        // ...
    );
}

Configure service in your YAML configuration

#app/config/config.yml
framework:
    # ...
    templating:
        engines: ['twig']
        assets_version: 1.0.0
        assets_version_format: %%s?v=%%s
        packages:
            image:
                base_urls: ["http://cdn.domain.com"]
            ico:
                version_format: %%s
    # ...
glory_assets:
    packages:
        image:                          #Connection framework.templating.packages.{image}
            match: "/\.(jpg|png)$/"     #php code preg_match($match, $path), if match, use framework.templating.packages.{image}
        ico:
            match: "/favicon\.ico$/"

The Versions

25/05 2016

dev-master

9999999-dev http://foreverglory.me

Symfony AssetsBundle

  Sources   Download

MIT

The Requires

 

bundle symfony assets

19/03 2016

v0.2.0

0.2.0.0 http://foreverglory.me

Symfony AssetsBundle

  Sources   Download

MIT

The Requires

 

bundle symfony assets

16/01 2016

v0.1.0

0.1.0.0 http://foreverglory.me

Symfony AssetsBundle

  Sources   Download

MIT

The Requires

 

bundle symfony assets