symfonyan/acme-symfonyan-bundle

Symfony 日本化欢迎和错误页面

安装: 184

依赖: 0

建议者: 0

安全: 0

星标: 11

关注者: 1

分支: 0

公开问题: 0

类型:symfony-bundle

dev-master 2013-05-19 04:54 UTC

This package is not auto-updated.

Last update: 2024-09-23 13:36:52 UTC


README

安装

请将以下内容添加到 Symfony 项目的 composer.json 文件的末尾:

"require": {
    ....
    symfonyan/acme-symfonyan-bundle: "dev-master"
},

配置

接下来,打开 app/AppKernel.php 文件,在 registerBundles() 方法中注册 dev 和 test 环境的包。

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
    $bundles[] = new Symfony\Bundle\WebConfiguratorBundle\SymfonyWebConfiguratorBundle();
    $bundles[] = new Acme\SymfonyanBundle\AcmeSymfonyanBundle(); // <= 追加
}

运行命令

执行以下命令以激活自定义模板。

$ ./app/console symfonyan:exception-install --symlink
$ ./app/console symfonyan:welcome-install --symlink
$ ./app/console assets:install web --symlink

卸载

简单地删除在 app/Resources 目录内创建的自定义文件。

$ rm app/Resources/{TwigBundle,AcmeDemoBundle}