PHP code example of opifer / redirect-bundle
1. Go to this page and download the library: Download opifer/redirect-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
opifer / redirect-bundle example snippets
public function registerBundles()
{
$bundles = [
// ...
new Opifer\RedirectBundle\OpiferRedirectBundle(),
];
}
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Opifer\RedirectBundle\Model\Redirect as BaseRedirect;
/**
* @ORM\Entity()
* @ORM\Table(name="redirect")
*/
class Redirect extends BaseRedirect
{
}