Download the PHP package sideclick/core-bundle without Composer
On this page you can find all versions of the php package sideclick/core-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sideclick/core-bundle
More information about sideclick/core-bundle
Files in sideclick/core-bundle
Package core-bundle
Short Description This is a Symfony Bundle compatible with Symfony 2.6+ which provides several features we consider core here at Sideclick.
License mit
Informations about the package core-bundle
Sideclick CoreBundle
This is a Symfony Bundle compatible with Symfony 2.6+ which provides several features which are commonly required in Symfony projects.
Installation
Step 1: Add the following to the "require" section of composer.json
Step 2: Enable the bundle
Enable the bundle in the kernel:
Step 3: Install additional Bundles
This Bundle requires that other bundles be installed and configured, these are:
- https://github.com/dustin10/VichUploaderBundle
- https://github.com/FriendsOfSymfony/FOSMessageBundle (Note that when installing this, you do not need to perform the steps named "Step 2 - Setting up your user class" and "Step 3 - Set up FOSMessageBundle's models", this has already been done in the ScCoreBundle
Step 3.1 Configuring FOSMessageBundle
When configuring FOSMessageBundle, start with this:
You will need to install and configure these before being able to use this Bundle.
Features
1. Entity Helpers
Entity helper classes should be defined in the /Entity/Helper directory, here is the basic structure of an Entity Helper class for an entity named 'User':
There is a service named sc_core.entity_helper_factory which makes it easy to get an instance of an Entity Helper for an object, for example, in your controller you could do:
Also, there is a twig function to get a helper in your templates:
More documentation to come...
All versions of core-bundle with dependencies
symfony/symfony Version >=2.6,<3.0
doctrine/orm Version ~2.2,>=2.2.3
vich/uploader-bundle Version >=0.14
friendsofsymfony/message-bundle Version >=1.2