Fix resource controller

This commit is contained in:
Paweł Jędrzejewski 2012-11-01 22:37:05 +01:00
parent b451587341
commit 98e7a5b6a3
4 changed files with 5 additions and 52 deletions

View file

@ -197,7 +197,11 @@ abstract class ResourceController extends Controller implements ResourceControll
public function setFlash($name, $value) public function setFlash($name, $value)
{ {
if ($this->isHtmlRequest()) { if ($this->isHtmlRequest()) {
parent::setFlash($name, $value); $this
->get('session')
->getFlashBag()
->set($name, $value)
;
} }
} }

View file

@ -1,16 +0,0 @@
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
if (!file_exists($file = __DIR__.'/../vendor/autoload.php')) {
die("Please install dev dependencies using Composer to run the test suite. \n");
} else {
require_once $file;
}

View file

@ -1,16 +0,0 @@
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
if (file_exists($file = __DIR__.'/autoload.php')) {
require_once $file;
} elseif (file_exists($file = __DIR__.'/autoload.php.dist')) {
require_once $file;
}

View file

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./Tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="SyliusResourceBundle test suite">
<directory suffix="Test.php">./Tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./Resources</directory>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>