2017 © Pedro Peláez
 

library commercetools-product-slug-router-bundle

A cmf router matching the slug to a found commercetools slug.

image

bestit/commercetools-product-slug-router-bundle

A cmf router matching the slug to a found commercetools slug.

  • Monday, May 29, 2017
  • by WBLKonzept
  • Repository
  • 3 Watchers
  • 0 Stars
  • 5,419 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 8 % Grown

The README.md

Router for product slugs in a commercetools project

This router loads a product matching the given request uri to product slugs. It utilizes the cmf routing package heavily and registers the provided product router as a chained cmf router through the service tag "router"., (*1)

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*2)

$ composer require bestit/commercetools-product-slug-router-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*3)

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*4)

<?php
// app/AppKernel.php

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

            new \BestIt\CtProductSlugRouterBundle\BestItCtProductSlugRouterBundle(),
        );

        // ...
    }

    // ...
}

Step 3: Configure the Bundle

best_it_ct_product_slug_router:

    # Which controller-method should be used on a positive match?
    controller:           'BestIt\Frontend\ProductBundle\Controller\DetailController::indexAction'

    # Which priority has this router in the cmf chaining?
    priority:             0

    # Service id for the repositry loading products with their slug. You should fulfill the provided interface.
    repository:           ~

    # Which route name is used for a positive match?
    route:                best_it_frontend_product_detail_index

Further ToDos

  • The lib folder could be moved to a separate repo.

The Versions

29/05 2017

dev-master

9999999-dev

A cmf router matching the slug to a found commercetools slug.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Björn Lange

29/05 2017

0.3.2

0.3.2.0

A cmf router matching the slug to a found commercetools slug.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Björn Lange

29/05 2017

0.3.1

0.3.1.0

A cmf router matching the slug to a found commercetools slug.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Björn Lange

25/04 2017

0.3.0

0.3.0.0

A cmf router matching the slug to a found commercetools slug.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Björn Lange

22/12 2016

0.2.3

0.2.3.0

A cmf router matching the slug to a found commercetools slug.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Björn Lange

14/12 2016

0.2.2

0.2.2.0

A cmf router matching the slug to a found commercetools slug.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Björn Lange

14/12 2016

0.2.1

0.2.1.0

A cmf router matching the slug to a found commercetools slug.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Björn Lange

13/12 2016
13/12 2016
13/12 2016

0.1.2

0.1.2.0

A cmf router matching the slug to a found commercetools slug.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Björn Lange

13/12 2016

0.1.1

0.1.1.0

A cmf router matching the slug to a found commercetools slug.

  Sources   Download

proprietary

The Requires

 

The Development Requires