*
* @throws \InvalidArgumentException
*/
public function __construct(Request $request, $locale)
{
if (!is_string($locale) || null == $locale || '' == $locale) {
throw new \InvalidArgumentException(sprintf('Wrong type, expected \'string\' got \'%s\'', $locale));
}
$this->request = $request;
$this->locale = $locale;
in Event/FilterLocaleSwitchEvent.php, line 39
* * @throws \InvalidArgumentException */ public function __construct(Request $request, $locale) { if (!is_string($locale) || null == $locale || '' == $locale) { throw new \InvalidArgumentException(sprintf('Wrong type, expected \'string\' got \'%s\'', $locale)); } $this->request = $request; $this->locale = $locale;Posted from SensioLabsInsight