Symfony2 media bundle
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Command
Controller
DependencyInjection
Entity
Event
Exception
Form
Manager
Media
MetadataExtractor
Resources
Tests
.gitignore
README.md
TmsMediaBundle.php
composer.json
phpunit.xml.dist

README.md

TmsMediaBundle

Symfony2's TMS Media Bundle.

Installation

Add dependencies in your composer.json file:

"repositories": [
    ...,
    {
        "type": "vcs",
        "url": "https://github.com/Tessi-Tms/TmsMediaBundle.git"
    }
],
"require": {
        ...,
        "knplabs/gaufrette": "0.2.*@dev",
        "knplabs/knp-gaufrette-bundle": "dev-master",
        "idci/exporter-bundle": "dev-master",
        "tms/media-bundle": "dev-master"
    },

Install these new dependencies of your application:

$ composer update

Enable the bundles in your application kernel :

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        //
        new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(),
        new IDCI\Bundle\ExporterBundle\IDCIExporterBundle(),
        new Tms\Bundle\MediaBundle\TmsMediaBundle(),
    );
}

Now import the bundle configuration in your app/config.yml

# app/config/config.yml

imports:
    ...
    - { resource: @TmsMediaBundle/Resources/config/config.yml }

Documentation

Read the Documentation

Tests

Install bundle dependencies:

$ php composer.phar update

To execute unit tests:

$ phpunit --coverage-text