コード例 #1
0
 /**
  * Processes operation task
  *
  * @return void
  */
 public function doOperation()
 {
     foreach ($this->data['paths'] as $path) {
         $this->classesScanner->getList($path);
     }
     $this->repositoryScanner->setUseAutoload(false);
     $files = $this->configurationScanner->scan('di.xml');
     $repositories = $this->repositoryScanner->collectEntities($files);
     foreach ($repositories as $entityName) {
         class_exists($entityName);
     }
 }
コード例 #2
0
    /**
     * Processes operation task
     *
     * @return void
     */
    public function doOperation()
    {
        if (array_diff(array_keys($this->data), ['filePatterns', 'path'])
            !== array_diff(['filePatterns', 'path'], array_keys($this->data))) {
            return;
        }

        $this->classesScanner->getList($this->data['path']);
        $this->repositoryScanner->setUseAutoload(false);
        $files = $this->directoryScanner->scan($this->data['path'], $this->data['filePatterns']);
        $repositories = $this->repositoryScanner->collectEntities($files['di']);
        foreach ($repositories as $entityName) {
            class_exists($entityName);
        }
    }