tmsolution/classmapper-bundle

Symfony2 bundle for classmapper

v1.0.6 2015-11-18 14:07 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:20:00 UTC


README

by Damian Piela damian.piela@tmsolution.pl

Description

TMSolution ClassMapperBundle is a tool for mapping class names to more friendly equivalents.

Configuration

To use the bundle, update your composer.json:

//composer require
...
"tmsolution/classmapper-bundle": "~1.0"

and enable it in the AppKernel.php:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Core\ClassMapperBundle\CoreClassMapperBundle()
    );
}

Also, change your config.yml file similarly to the provided example:

core_class_mapper:
     languages:
        pl:
            pl_friendly_name: Entity\Class\Name
        en:
            en_friendly_name: Entity\Class\Name