public function __construct(LoaderInterface $loader, array $typePaths, array $defaultTypes, $cachePath, $debug = false)
{
$this->typePaths = $typePaths;
$this->cachePath = $cachePath;
$this->loader = $loader;
$this->debug = $debug;
$this->defaultTypes = $defaultTypes;
}