The bundle is back!

The definition of service has changed, read the README.
This commit is contained in:
Francis Besset
2011-07-17 10:46:54 +02:00
parent 81118f8d47
commit 1c608ccf20
48 changed files with 641 additions and 535 deletions

View File

@ -16,8 +16,8 @@ namespace Bundle\WebServiceBundle\Util;
*/
class Assert
{
const ARGUMENT_INVALID = "Argument '%s' is invalid!";
const ARGUMENT_NULL = "Argument '%s' can't be null!";
const ARGUMENT_INVALID = 'Argument "%s" is invalid.';
const ARGUMENT_NULL = 'Argument "%s" can not be null.';
public static function thatArgument($name, $condition, $message = self::ARGUMENT_INVALID)
{
@ -28,6 +28,6 @@ class Assert
public static function thatArgumentNotNull($name, $value)
{
self::thatArgument($name, $value != null, self::ARGUMENT_NULL);
self::thatArgument($name, null !== $value, self::ARGUMENT_NULL);
}
}