承接 darkkrye/cache-clear-toolbar 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

darkkrye/cache-clear-toolbar

Composer 安装命令:

composer require darkkrye/cache-clear-toolbar

包简介

CacheClearToolbar is an addon to the Symfony Web Debug Toolbar.

README 文档

README

CacheClearToolbar is an addon to the Symfony Web Debug Toolbar.

The CacheClearToolbar design uses Bootstrap classes.
If you do not use it, the CacheClearToolbar will lose his awesome adapted design. ;)

It allows you to quickly :

  • See the current route name,
  • Clear the dev cache and refresh the page,
  • Clear the prod cache and refresh the page,
  • Clear both cache and refresh the page or
  • Just refresh the page.

alt text

Usage

When the page is loaded, the Symfony Web Debug Toolbar is loaded. Just watch the last information in the Toolbar to see the CacheClearToolbar went alive.

To use this addon, you must have, at least, the version 3.0 of Symfony.
The addon may work on previous version but it has not been tested.

Install

Download from Github

  • Unzip Bundle,
  • Rename folder to CacheClearToolbar
  • Move folder to 'MySymfonyProject'/src/Darkkrye/

Download from Composer

  • Open terminal in your Symfony project folder,
  • Run composer require darkkrye/cache-clear-toolbar

Register into AppKernel

  • Add the following code into AppKernel :
// app/AppKernel.php
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    [...]
    $bundles[] = new Darkkrye\CacheClearToolbar\CacheClearToolbar();
}

Add to route file

  • Add the following code into main route file :
// app/config/routing.yml
cache_clear_toolbar:
    resource: "@CacheClearToolbar/Resources/config/routing.yml"
    prefix: /cache_clear_toolbar

Reload

  • Reload and enjoy !

Version

The CacheClearToolbar stable current version is : 1.0

TODO !

  • Create Web Debug Toolbar tool,
  • Add additional namespace,
  • Release to composer,
  • Change properties to only work in dev environment,
  • Add new route to just clear the cache and close the tab,
  • Add his own css rules,
  • Create Symfony project which implements the CacheClearToolbar.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固