e09225eb09
* Created AbstractProvider class (for all DB services), which handles the default batch_size option. * The logger Closure is now optional for populate(). * Removed unused Elastica_Type argument from Provider constructors. * Added unit tests for Doctrine's AbstractProvider class. * The extra argument (ManagerRegistry) for Doctrine providers is now an appended constructor argument, so the extension no longer needs to use different replacement indexes for Propel/Doctrine providers.
12 lines
344 B
PHP
12 lines
344 B
PHP
<?php
|
|
|
|
namespace FOQ\ElasticaBundle\Exception;
|
|
|
|
class InvalidArgumentTypeException extends \InvalidArgumentException
|
|
{
|
|
public function __construct($value, $expectedType)
|
|
{
|
|
parent::__construct(sprintf('Expected argument of type "%s", "%s" given', $expectedType, is_object($value) ? get_class($value) : gettype($value)));
|
|
}
|
|
}
|