2017 © Pedro Peláez
 

symfony-bundle maintenance-bundle

A simple symfony bundle that helps you set your application in maintenance.

image

iulyanp/maintenance-bundle

A simple symfony bundle that helps you set your application in maintenance.

  • Thursday, December 29, 2016
  • by iulyanp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Build Status StyleCI Scrutinizer Code Quality Build Status, (*1)

MaintenanceBundle

The MaintenanceBundle is a simple bundle that helps you to set your application in maintenance., (*2)

Installation

Step 1: Require the bundle with composer

Open your terminal and run one of the following commands to download the bundle into your vendor directory., (*3)

  • If you have composer installed globally you can run:
$ composer require iulyanp/maintenance-bundle
  • Else you can go with:
$ php composer.phar require iulyanp/maintenance-bundle

Step 2: Register the bundle in your AppKernel class

Register the bundle in the app/AppKernel.php file of your project:, (*4)

<?php
/** app/AppKernel.php */

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(

            ...

            new Iulyanp\MaintenanceBundle\IulyanpMaintenanceBundle(),
        );
    }
}

Step 3: Import the bundle routes

iulyanp_maintenance:
    resource: "@IulyanpMaintenanceBundle/Resources/config/routing.yml"
    prefix:   /

Step 4: Configure the bundle

In order for the bundle to know when to set your website in maintenance you should configure it., (*5)

iulyanp_maintenance:
    enabled:   false
    due_date:  '14-10-2017 00:00:00'
    layout:
        signature: 'iulyanp'
        title: We are in maintenance
        description: Comming back soon...

You should use enabled and due_date configurations to chose when you want your application to be in maintenance and until what date. You activate the maintenance by changing the enabled config to true but your website will be in maintenance only if you set the due date configuration., (*6)

The layout parameters are for changing the default title, message and signature from the default layout. You can translate these configurations in the translation files., (*7)

Note! Do not forget to activate the translations on Symfony framework., (*8)

# config.yml

framework:
    translator:      { fallbacks: ["%locale%"] }
    ...

The Versions

29/12 2016

dev-master

9999999-dev

A simple symfony bundle that helps you set your application in maintenance.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iulian Popa

maintenance symfony3 symfony-maintenance

18/10 2016

v1.0.0

1.0.0.0

A simple symfony bundle that helps you set your application in maintenance.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iulian Popa

maintenance symfony3 symfony-maintenance

18/10 2016

dev-analysis-XVGWWV

dev-analysis-XVGWWV

A simple symfony bundle that helps you set your application in maintenance.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Iulian Popa

maintenance symfony3 symfony-maintenance