/** * @param FileParameter $FileOption */ public function __construct(FileParameter $FileOption) { AutoLoader::getNamespaceAutoLoader('Symfony\\Component', __DIR__ . '/../../../Vendor/'); $this->FileOption = $FileOption; try { $this->Instance = new Finder(); $this->Instance->useBestAdapter()->files()->name(pathinfo($FileOption->getFile(), PATHINFO_BASENAME))->in(pathinfo($FileOption->getFile(), PATHINFO_DIRNAME)); } catch (\Exception $Exception) { // Nothing } }
/** * @return Finder */ public function useBestAdapter() { return parent::useBestAdapter(); }