tt
==

A Symfony project created on February 23, 2017, 1:42 pm.

##  To have a representation of entity's mappings
In php container, do php bin/console yuml:mappings
To personnalize, see https://github.com/Nono1971/doctrine-yuml-bundle

## If memory issues when installing bundle
Copy this before composer require : COMPOSER_MEMORY_LIMIT=-1

## To update database schema
In php container, root@php:/home/www/website/www# php bin/console doctrine:schema:update --force
It'll update database based on entities

## To push notifications
- Create new .json file in web/push folder.

- This file is composed of two arrays : parameters, where you select specific subscribers to receive notifications, 
and notification, where you write the content. 

- Values for parameters : 
    * "pushType" : define the rule to find subscribers, only one value which fits with next ones. Values : "general", "profil", "users", "tags".
    * "profilCompletenessPercentage" : define the % of profil completeness. Works with "profil" value of pushType.
    * "users" : enters subscriber's mail. Works with "users" value of pushType.
    * "keywords" : enters tags to identify subscribers. Works with "tags" value of pushType.

- Values for notification :
    * "title" : the title!
    * "body" : the content.
    * "icon" : the website icon.
    * "image" : to add an image.
    * "tag" : Used to regroup notifications.
    * "data" : array where you can add "link" property. Link will redirect to the given URL.
    * "actions" : array where you can add specific action with "action", "title".
    * "badge" : to add an image for small device.

- Open SendPushCommand.php, go to configure(), and change the last line of addOption() for files with your filename.

## Stacktrace exception API
All exceptions catched are written in the dev.log file (for ENV=dev I guess) in the AppBundle/var/logs folder. 
To have an exception that can be written in this file, create or use an already existing Exception (in AppBundle/Exception) in your Controller.

## Question to ask to Corentin
* Is there a validation from Talents Tube operator to set the answer status to published?
* Is there a comment to be written when post an answer ? (not here in mock-up)