$filePath = "/path/to/file";
$fileBuilderFactory = new ConcreteFileBuilderFactory();
$filesXmlBuilderFactory = new ConcreteFilesXmlBuilderFactory($fileBuilderFactory);
$softwaresRetrieverCriteriaBuilderFactory = new ConcreteSoftwaresRetrieverCriteriaBuilderFactory($filesXmlBuilderFactory);
$softwareRetrieverCriteriaBuilderFactory = new ConcreteSoftwaresSoftwareRetrieverCriteriaBuilderFactory($filesXmlBuilderFactory );
$filesJsonBuilderFactory = new ConcreteFilesJsonBuilderFactory($fileBuilderFactory);
$objectBuildderFactory = new ConcreteSoftwaresSoftwareObjectBuilderFactory();
$softwaresSoftwareBuilderFactory = new ConcreteSoftwaresSoftwareBuilderFactory($objectBuildderFactory);
$xmlSoftwareRepository = new XmlSoftwareRepository($softwaresSoftwareBuilderFactory);
$softwaresBuilderFactory = new ConcreteSoftwaresBuilderFactory($xmlSoftwareRepository, $softwareRetrieverCriteriaBuilderFactory, $filesJsonBuilderFactory);
$xmlSoftwaresRepository = new XmlSoftwaresRepository($softwaresBuilderFactory);
$softwareToHashMap = new ConcreteSoftwareToHashMap();
$softwaresToHashMap = new ConcreteSoftwaresToHashMap($softwareToHashMap);
$jsonSoftwaresService = new JsonSoftwaresService($softwaresToHashMap);
$di = new DependencyInjection($softwaresRetrieverCriteriaBuilderFactory, $xmlSoftwaresRepository, $jsonSoftwaresService);
kurkuma
06.12.2012 19:05 Gajim
Do you really want to delete ?
иксомель на бенаре сидит жэйсоном погоняет
пехапе готов для десктопа
ну с пятой версии дорос
)))
лул