matks/customer-support-bundle

Tickets-based bundle to integrate customer exchange in your symfony2 application

v1.2 2018-01-05 10:49 UTC

This package is auto-updated.

Last update: 2024-12-10 00:22:24 UTC


README

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage Latest Unstable Version License

Tickets-based bundle to integrate customer exchange in your symfony2 application

Installation

Step 1: composer requirements

Add the private repository metadata in your composer.json

{
    "require": {
        "matks/customer-support-bundle": "1.2"
    },
}

Then run the composer command

$ php composer.phar install

Step 2: Enable the bundle in your Symfony application

<?php
    // app/AppKernel.php

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Matks\Bundle\CustomerSupportBundle\CustomerSupportBundle(),
        )
    }

Step 3: Configure doctrine entity resolver

doctrine:
    orm:
        resolve_target_entities:
            Matks\Bundle\CustomerSupportBundle\Model\UserInterface: Matks\Bundle\CustomerSupportBundle\Entity\User
            Matks\Bundle\CustomerSupportBundle\Model\MessageInterface: Matks\Bundle\CustomerSupportBundle\Entity\Message
            Matks\Bundle\CustomerSupportBundle\Model\TicketInterface: Matks\Bundle\CustomerSupportBundle\Entity\Ticket
            Matks\Bundle\CustomerSupportBundle\Model\CategoryInterface: Matks\Bundle\CustomerSupportBundle\Entity\Category

Tests

Stand alone context

In a bundle isolation context, just install the dev dependencies with composer

$ composer install --dev

Run the unit tests suite with phpunit binary

$ vendor/bin/phpunit

Run acceptance tests with behat binary using the fixture application and sqlite

$ vendor/bin/behat -c behat.ci.yml