szurubooru/src/IValidatable.php
Marcin Kurczewski c117367974 Added IValidatable; moved validation to FormData
I still struggle to find out how to deal with arguments like
$userNameOrEmail. Should I trim() them in controllers, or in service?
If I do it in service, shouldn't all of such validation belong in there?
2014-10-18 18:48:19 +02:00

7 lines
117 B
PHP

<?php
namespace Szurubooru;
interface IValidatable
{
public function validate(\Szurubooru\Validator $validator);
}