bayardev/shared-tools-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bayardev/shared-tools-bundle

Composer 安装命令:

composer require bayardev/shared-tools-bundle

包简介

Symfony Bundle with shared tools for Bayard projects (but every symfony project can use it)

README 文档

README

Latest Stable Version Latest Unstable Version PHP required version License Total Downloads

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require bayardev/shared-tools-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Create VERSION file

Create an empty file named VERSION in root dir of the project

Step 3: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Bayard\Bundle\SharedToolsBundle\BayardSharedToolsBundle(),
        );
        // ...
    }
    // ...
}

Use of ScriptHandler::checkDoctrineMigrations

Before you can put this ScriptHandler in composer.json of your project ensure that you have in bundles list in APPKernel.php DoctrineMigrationsBundle :

<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
        );
        // ...
    }
    // ...
}

Than you can add this in composer.json like this :

{
    /*...*/
    "scripts": {
            /*...*/
            "post-install-cmd": [
                "@symfony-scripts",
                "Bayard\\Bundle\\SharedToolsBundle\\Composer\\ScriptHandler::checkDoctrineMigrations"
            ]
             /*...*/
        }
    /*...*/
}

Use of syslog handler

Just add in your config.yml or/and in config_dev.yml, config_prod.yml theses parameters :

monolog:
    handlers:
        #...
        syslog:
            type: syslog
            level: error
            ident: app
            facility: local7
            formatter: bayardlog.formatter.syslog_line

Be free to chnage level parameter but you must leave intouched the others parameters for all Bayard Projects ...

统计信息

  • 总下载量: 285
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 8
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2016-10-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固