Nelmio\Alice\DataLoaderInterface::loadData PHP Метод

loadData() публичный Метод

Loads a data set.
public loadData ( array $data, array $parameters = [], array $objects = [] ) : ObjectSet
$data array Data to load
$parameters array Additional parameters to inject
$objects array Additional objects to inject
Результат ObjectSet Contains the list of objects and parameters loaded and injected.
    public function loadData(array $data, array $parameters = [], array $objects = []) : ObjectSet;

Usage Example

Пример #1
0
 /**
  * @testdox The cache of the loader
  */
 public function testGenerationCache()
 {
     // This loading will trigger the caching part of the FixtureWildcardReferenceResolver to
     // cache the pattern for `@another*`
     $this->nonIsolatedLoader->loadData(['parameters' => [], \stdClass::class => ['another_dummy' => [], 'dummy' => ['related' => '@another*']]], [], []);
     // This loading will also the caching part of the FixtureWildcardReferenceResolver. The
     // cache having the same lifetime as the generation context is what ensures the cache from
     // the previous loading will not interfer with this one
     $this->nonIsolatedLoader->loadData(['parameters' => [], \stdClass::class => ['another_dummy_new' => [], 'dummy' => ['related' => '@another*']]], [], []);
 }
All Usage Examples Of Nelmio\Alice\DataLoaderInterface::loadData
DataLoaderInterface