public function prepareHacks($fileNames, $pathNames)
    {
        if ($dirs = ini_get('include_path')) {
            $pathNames = array_unique(
                array_filter(
                    array_merge(
                        $pathNames,
                        explode(PATH_SEPARATOR, $dirs)
                    )
                )
            );
        }

        foreach ($fileNames as $file) {
            if (null === ($fileName = $this->resolveFile($file, $pathNames))) {
                $this->logger->error(
                    'Custom class loader hack {file} not found and has been ignored.',
                    array('file' => $file)
                );

                return;
            }
            $this->handleHackFile($fileName);
        }
    }