<?php

namespace CrudGenerator\Metadata;

use CrudGenerator\Utils\ClassAwake;

/**
 * Create MetaDataSourceFinder instance
 *
 * @author Stéphane Demonchaux
 */
class MetaDataSourceFinderFactory
{
    /**
     * Create MetaDataSourceFinder instance
     *
     * @return \CrudGenerator\Metadata\MetaDataSourceFinder
     */
    public static function getInstance()
    {
        $metaDataSourceHydrator = MetaDataSourceHydratorFactory::getInstance();
        $classAwake             = new ClassAwake();

        return new MetaDataSourceFinder($classAwake, $metaDataSourceHydrator);
    }
}
