PHPackages                             aferrandini/disable-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aferrandini/disable-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

aferrandini/disable-bundle
==========================

Symfony2 bundle for disable controllers with annotations.

v1.0(12y ago)4208MITPHPPHP &gt;=5.3.2

Since Jul 23Pushed 12y agoCompare

[ Source](https://github.com/aferrandini/DisableBundle)[ Packagist](https://packagist.org/packages/aferrandini/disable-bundle)[ Docs](https://github.com/aferrandini/DisableBundle)[ RSS](/packages/aferrandini-disable-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

DisableBundle
=============

[](#disablebundle)

This Bundle has been created to show how to create a custom Annotation in [deSymfony 2013 Conference](http://desymfony.com).

You will find more information about Annotations at [Annotations: it’s not a part of my program, but it’s my program](http://desymfony.com/ponencia/2013/anotaciones-en-sf2).

This bundle provides an easy way to disable an Action or a Controller. You will be able to disable directly, after a date/time, until a date/time or by a date/time range. You also be able to show a disabled message or redirect the request to another route.

[![Build Status](https://camo.githubusercontent.com/88d08ae34a0847f671132290377abc76e3f9cb4ab9402d935aa21169fff72adc/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6166657272616e64696e692f44697361626c6542756e646c652e706e67)](http://travis-ci.org/aferrandini/DisableBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/555b5d8eceb5fa4f4bab88501db3369d9d68ba9f279ce2225e4a90908afb0fd2/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62336566346133652d373164362d346161652d613861332d6161346434326237623962662f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/b3ef4a3e-71d6-4aae-a8a3-aa4d42b7b9bf)

Installation
------------

[](#installation)

### Step 1: Install vendors

[](#step-1-install-vendors)

#### Symfony 2.0.x: `bin/vendors.php` method

[](#symfony-20x-binvendorsphp-method)

If you're using the `bin/vendors.php` method to manage your vendor libraries, add the following entries to the `deps` in the root of your project file:

```
[FerrandiniDisableBundle]
    git=http://github.com/aferrandini/DisableBundle.git
    target=/bundles/Ferrandini/Bundle/DisableBundle

```

Next, update your vendors by running:

```
$ ./bin/vendors
```

Finally, add the following entry to your autoloader:

```
