Critères d'acceptances :
[x] La création de produit se fait avec un formulaire.
[x] Un produit constitué d'un nom, d'un prix et d'un fichier PDF.
[x] Utiliser la configuration sémantique dans le bundle afin de rendre configurable le chemin d'upload de fichier et valider cette configuration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 13.0, | |
"highlight_modified_tabs": true, | |
"ignored_packages": | |
[ | |
"Vintage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\Bundle\DemoBundle\Twig; | |
class TimeAgoExtension extends \Twig_Extension | |
{ | |
public function getFilters() | |
{ | |
return array( | |
new \Twig_SimpleFilter('time_ago', array($this, 'timeAgoFilter')), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Canopy\CoreBundle\Service; | |
use Doctrine\ORM\EntityManager; | |
use Symfony\Bundle\FrameworkBundle\Routing\Router; | |
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | |
//… | |
class Paginator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\TrainingBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
class DefaultController extends Controller | |
{ |
Critères d'acceptances :
[X] Faire un EventListener sur kernel.request qu'il soit déclenché au plus tôt
[X] N'exécuter la logique de l'eventListener uniquement s'il s'agit de la master request
[X] La jours de disponibilité sont configurable
[X] Convertir l'eventListener en EventSubscriber
[X] Créer un événements custom avec une méthode retournant un datetime
[X] Dans le event subscriber, dispatcher l'évènement custom 1 jour avant la fermeture.
=> see commit: http://bit.ly/1wqwvbe
As a user, I need to see the french version of a shop when I click on the french flag, and the english version when I click on the american flag.
[X] The static message on the website must be translated.
[X] The local must be in the url.
[X] The list of products must be displayed from the database, in the two languages.
[X] The pages must look like these designs:
You need to install RabbitMQ: http://www.rabbitmq.com/download.html.
To install the project:
- Install composer: https://getcomposer.org/download/
- run the command:
composer.phar install
OlderNewer