Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

BrauneDigitalRedirectBundle

This Bundle allows you to persist redirects in Doctrine ORM. Additional Status codes (e.g.: temporary or permanent) can be used.

Installation

Download using composer:

composer require braune-digital/redirect-bundle "~1.1"

And enable the Bundle in your AppKernel:

public function registerBundles()
    {
        $bundles = array(
          ...
          new BrauneDigital\RedirectBundle\BrauneDigitalRedirectBundle(),
          ...
        );

Usage

Create a redirect

$manager = $container->get('braune_digital.redirect.manager'); # Get the RedirectManager
$manager->create($oldPath, $redirectPath, $statusCode); # Create a redirect  

Update a redirect

You may update a redirect by directly accessing the Redirect Repository (BrauneDigitalRedirectBundle:Redirect)

About

This Bundle allows you to persist redirects in Doctrine ORM. Additional Status codes (e.g.: temporary or permanent) can be used.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.