Example #1
0
 /**
  * Tests whether an exception needs to be recast for compliance with Container-Interop.  This will be if the
  * exception was thrown by Pimple.
  *
  * @param \InvalidArgumentException $exception
  *
  * @return bool
  */
 private function exceptionThrownByContainer(\InvalidArgumentException $exception)
 {
     $trace = $exception->getTrace()[0];
     return $trace['class'] === PimpleContainer::class && $trace['function'] === 'offsetGet';
 }