asgoodasnu/base-bundle

Bundle to provide several base classes

This package's canonical repository appears to be gone and the package has been frozen as a result.

Installs: 831

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 24

Forks: 1

Open Issues: 0

Type:symfony-bundle

v0.0.5 2015-10-06 15:59 UTC

This package is not auto-updated.

Last update: 2019-11-18 23:03:05 UTC


README

Build Status Total Downloads Latest Stable Version SensioLabsInsight

Installation

Install via composer:

composer.phar require asgoodasnu/base-bundle

Register your bundle in the AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Wk\BaseBundle\WkBaseBundle(),
        // ...
    );

    return $bundles;
}

Configuration

Add persistance service for MongoDB:

services:
    wk_base.abstract:
        class: Wk\BaseBundle\Services\PersistenceService
        abstract: true
        arguments: ['@doctrine_mongodb.odm.document_manager']
        calls:
            - [setLogger, ["@logger"]]