Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Friendly URI Routing Bundle for Symfony2
PHP
tree: 5f2c96be5a

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
DependencyInjection
Entity
EventListener
Model
Resources/config
Routing/Generator
GoFriendlyRoutingBundle.php
README.md Rename Bundle.

README.md

GoFriendlyRoutingBundle

Installation

Installation depends on how your project is setup:

Step 1: Installation using the bin/vendors.php 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:

[GoFriendlyRoutingBundle]
    git=http://github.com/golovanov/GoFriendlyRoutingBundle.git
    target=/bundles/Go/FriendlyRoutingBundle

Next, update your vendors by running:

$ ./bin/vendors install

Great! Now skip down to Step 2.

Step 1 (alternative): Installation with submodules

If you're managing your vendor libraries with submodules, first create the vendor/bundles/Go directory:

$ mkdir -pv vendor/bundles/Go

Next, add the two necessary submodules:

$ git submodule add git://github.com/golovanov/GoFriendlyRoutingBundle.git vendor/bundles/Go/FriendlyRoutingBundle

Step 2: Configure the autoloader

Add the following entries to your autoloader:

<?php
// app/autoload.php

$loader->registerNamespaces(array(
    // ...

    'Go'    => __DIR__.'/../vendor/bundles',
));

Step 3: Enable the bundle

Finally, enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Go\FriendlyRoutingBundle\GoFriendlyRoutingBundle(),
    );
}
Something went wrong with that request. Please try again.