1: <?php
2:
3: namespace Charcoal\Admin\Widget\Cms;
4:
5: use Pimple\Container;
6:
7: // From 'charcoal-support'
8: use Charcoal\Support\Admin\Widget\TableWidget;
9:
10: /**
11: * The hierarchical table widget displays a collection in a tabular (table) format.
12: */
13: class SectionTableWidget extends TableWidget
14: {
15: use SectionTableTrait;
16:
17: /**
18: * Inject dependencies from a DI Container.
19: *
20: * @param Container $container A dependencies container instance.
21: * @return void
22: */
23: public function setDependencies(Container $container)
24: {
25: parent::setDependencies($container);
26:
27: $this->setSectionFactory($container['cms/section/factory']);
28: }
29: }
30: