teapotio / teapotio-forum
A forum system on Symfony2
Requires
- php: >=5.3.3
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- exercise/htmlpurifier-bundle: >=0.1.0
- gregwar/captcha-bundle: >=1.1
- gregwar/image-bundle: >=2.0.0
- knplabs/knp-markdown-bundle: ~1.3
- symfony/assetic-bundle: ~2.3
- symfony/swiftmailer-bundle: ~2.3
- symfony/symfony: >=2.3
- teapotio/base-cache-bundle: v1.0.0
- teapotio/base-forum-bundle: v1.0.0
- teapotio/base-theme-bundle: v1.0.0
- teapotio/base-user-bundle: v1.0.0
- twig/extensions: ~1.0
This package is not auto-updated.
Last update: 2018-06-08 15:50:06 UTC
README
Introduction
Teapotio forum provides a full feature forum solution for small to large communities.
If you'd like to download the standalone version of the forum, please refer to the README file located in the teapotio-forum-standard repository.
Integrate to your app
composer.json
Add the following to your composer file:
{ "require": { "teapotio/teapotio-forum": "dev-master", } }
Run the following command: $ composer update
config.yml
Add the following to your config.yml file:
imports: - { resource: @TeapotioSiteBundle/Resources/config/config.yml } - { resource: @TeapotioSiteBundle/Resources/config/security.yml }
You can omit the security.yml if you'd like to make your own.
If you'd like to start with some default settings:
imports: - { resource: @TeapotioSiteBundle/Resources/config/config_default.yml }
Add the different bundles to your Doctrine config:
doctrine: orm: entity_managers: default: # the name of the entity manager might be different here mappings: TeapotioForumBundle: ~ TeapotioSiteBundle: ~ TeapotioUserBundle: ~ TeapotioImageBundle: ~ TeapotioUserBundle: ~
routing.yml
You can include the routes by including the main Teapotio routing file:
TeapotioForum: resource: "@TeapotioSiteBundle/Resources/config/routing.yml" prefix: /
Otherwise, you can manually each route prefix from the file above in your own.
AppKernel.php
Extends your AppKernel class with Teapotio's AppKernel class:
use Teapotio\Components\AppKernel as TeapotioAppKernel; class AppKernel extends TeapotioAppKernel { $bundles = array( ... ); $bundles = array_merge($bundles, parent::registerBundles()); ... }
Otherwise you can register the different bundle manually based the bundles registered in Teapotio's AppKernel class.