You are here

LoaderSetFinderOperation.php in X Autoload 7.4

File

lib/FinderOperation/LoaderSetFinderOperation.php
View source
<?php

namespace Drupal\xautoload\FinderOperation;

use Drupal\xautoload\ClassLoader\AbstractClassLoaderDecorator;
class LoaderSetFinderOperation implements FinderOperationInterface {

  /**
   * @var AbstractClassLoaderDecorator
   */
  protected $loader;

  /**
   * @param AbstractClassLoaderDecorator $loader
   */
  function __construct($loader) {
    $this->loader = $loader;
  }

  /**
   * {@inheritdoc}
   */
  function operateOnFinder($finder, $helper) {
    $this->loader
      ->setFinder($finder);
  }

}

Classes