basilicom/pimcore-plugin-system-banner 问题修复 & 功能扩展

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

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

basilicom/pimcore-plugin-system-banner

最新稳定版本:v4.0.0

Composer 安装命令:

composer require basilicom/pimcore-plugin-system-banner

包简介

Shows a banner of the pimcore environment, to indicate if you are on prod or dev or else.

README 文档

README

This plugin will show a banner on the top right with the environment name.

  • development environments = green
  • test environments = purple
  • stage environments = yellow
  • prod environments = red

Environment dev

it is used the .env variable APP_ENV.

Version information

Bundle Version PHP Pimcore
< 2.0 ^7.3 ^6.0
>= 2.0 ^8.0 ^10.0
>= 3.0 ^8.1 ^11.0
>= 4.0 ^8.3 ^12.0

Installation

composer require basilicom/pimcore-plugin-system-banner

Activate Plugin

  • Add to config/bundles.php
return [
    ...
    PimcorePluginSystemBannerBundle::class => ['all' => true],
];

or

  • Activate in the Pimcore backend in Tools -> Bundles & Bricks

Build assets

for Pimcore >= 10

bin/console assets:install public --symlink --relative

for lower than Pimcore X respectively lower than Symfony 5

bin/console assets:install web --symlink --relative

Customize the env name and color

You can customize the display of the name in the .env file (or .env.local). Use the following variable:

SYSTEM_BANNER_TEXT="My env name"

To customize the color, you can use the following variable:

SYSTEM_BANNER_COLOR=purple

you can choose between:

  • green
  • yellow
  • red
  • purple
  • blue

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 10
  • Forks: 0
  • 开发语言: TypeScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-12