Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
SectionFactory.php
1<?php
2
4
6
16{
17 public const SECTION = Section::class;
18 public const SECTION_COLLECTION = SectionCollection::class;
19
20 protected $container;
21
28 {
29 $this->container = $container;
30 }
31
35 public function createEntity(): Section
36 {
37 return $this->container->make(self::SECTION);
38 }
39
43 public function createCollection(): SectionCollection
44 {
46 return $this->container->make(self::SECTION_COLLECTION);
47 }
48}
__construct(ContainerContract $container)