sonofliberty/news-bundle

This package is abandoned and no longer maintained. The author suggests using the sonofliberty/news-bundle package instead.

A simple news/blog publication bundle

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

0.1.1 2019-02-24 13:11 UTC

This package is auto-updated.

Last update: 2021-01-26 04:36:03 UTC


README

Build Status

Symfony bundle with simple blog / publishing features

Installation

  1. Install via composer

    composer require sonofliberty/news-bundle

  2. Enable bundle

    // app/AppKernel.php
    
    public function registerBundles()
    {
        return array(
            // ...
            new SonOfLiberty\NewsBundle\SonOfLibertyNewsBundle(),
            new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
            new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), // needed for translations
            // ...
        );
    }
  3. Configuration

    # app/config/config.yml
    
    son_of_liberty_news:
        author:
            class: Acme\AcmeBundle\Entity\User # optional
  4. Import routing

    # app/config/routing.yml
    
    son_of_liberty_news:
        prefix: /news
        resource: '@SonOfLibertyNewsBundle/Resources/config/routing.yaml'