2017-01-14 17:36:56 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of the NelmioApiDocBundle package.
|
|
|
|
*
|
|
|
|
* (c) Nelmio
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Nelmio\ApiDocBundle\Describer;
|
|
|
|
|
|
|
|
use Nelmio\ApiDocBundle\Model\ModelRegistry;
|
|
|
|
|
|
|
|
trait ModelRegistryAwareTrait
|
|
|
|
{
|
2017-09-15 20:31:51 +03:00
|
|
|
/**
|
|
|
|
* @var ModelRegistry
|
|
|
|
*/
|
2017-01-14 17:36:56 +01:00
|
|
|
private $modelRegistry;
|
|
|
|
|
2017-09-15 20:31:51 +03:00
|
|
|
/**
|
|
|
|
* @param ModelRegistry $modelRegistry
|
|
|
|
*/
|
2017-01-14 17:36:56 +01:00
|
|
|
public function setModelRegistry(ModelRegistry $modelRegistry)
|
|
|
|
{
|
|
|
|
$this->modelRegistry = $modelRegistry;
|
|
|
|
}
|
|
|
|
}
|