kyoushu/foundation-bundle

此包已被废弃,不再维护。未建议替代包。

将zurb/foundation集成到Symfony中

安装: 43

依赖项: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 0

公开问题: 2

语言:CSS

类型:symfony-bundle

0.0.2 2014-05-06 21:57 UTC

This package is auto-updated.

Last update: 2022-02-01 12:35:21 UTC


README

将Foundation集成到Symfony

主分支目前是开发构建,不应用于实际项目。

安装

将捆绑包添加到composer.json

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/Kyoushu/FoundationBundle.git"
    }
],
"require": {
    "php": ">=5.3.2",
    "symfony/symfony": "~2.1",
    "_comment": "your other packages",

    "kyoushu/foundation-bundle": "dev-master"
}

将KyoushuFoundationBundle添加到应用内核

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Kyoushu\FoundationBundle\KyoushuFoundationBundle($this),
        // ...
    );
}

更新config.yml以包含以下行。

# app/config/config.yml
assetic:
    bundles:[ 'KyoushuFoundationBundle' ]
    filters:
        scssphp: ~

可选配置

如有需要,以下选项可以进行配置

# app/config/config.yml
kyoushu_foundation:

    # Forces Assetic to rebuild CSS on each request when true (default value)
    # This setting doesn't affect the behaviour of assetic:dump.
    force_rebuild_stylesheets: ~