Пример #1
0
 /**
  * @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
     }
 }
Пример #2
0
 /**
  * @return Finder
  */
 public function useBestAdapter()
 {
     return parent::useBestAdapter();
 }