src/AbstractListener.php
protected function loadArguments(\ReflectionFunctionAbstract $ref, EventParamResolverInterface $resolver)
	{
		$args = [];
		
		if($ref->getNumberOfParameters() > 1)
		{
			foreach(array_slice($ref->getParameters(), 1) as $param)
			{
				$args[] = $resolver->resolve($param->getClass(), $param->isDefaultValueAvailable() ? $param->getDefaultValue() : false);
			}
		}
		
		return $args;
	}
protected function loadArguments(\ReflectionFunctionAbstract $ref, EventParamResolverInterface $resolver)
	{
		$args = [];
		
		if($ref->getNumberOfParameters() > 1)
		{
			foreach(array_slice($ref->getParameters(), 1) as $param)
			{
				$args[] = $resolver->resolve($param->getClass(), $param->isDefaultValueAvailable() ? $param->getDefaultValue() : false);
			}
		}
		
		return $args;
	}
protected function loadArguments ( \ ReflectionFunctionAbstract $ ref , EventParamResolverInterface $ resolver ) { $ args = [ ] ; if ( $ ref -> getNumberOfParameters ( ) > 1 ) { foreach ( array_slice ( $ ref -> getParameters ( ) , 1 ) as $ param ) { $ args [ ] = $ resolver -> resolve ( $ param -> getClass ( ) , $ param -> isDefaultValueAvailable ( ) ? $ param -> getDefaultValue ( ) : false ) ; } } return $ args ; }
Populates arguments assembled from the event and the given target function.

@param \ReflectionFunctionAbstract $ref
@param EventParamResolverInterface $resolver
@return array
Populates arguments assembled from the event and the given target function .