eZ\Publish\Core\Repository\SectionService::__construct PHP Method

__construct() public method

Setups service with reference to repository object that created it & corresponding handler.
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Content\Section\Handler $sectionHandler, array $settings = [] )
$repository eZ\Publish\API\Repository\Repository
$sectionHandler eZ\Publish\SPI\Persistence\Content\Section\Handler
$settings array
    public function __construct(RepositoryInterface $repository, Handler $sectionHandler, array $settings = array())
    {
        $this->repository = $repository;
        $this->sectionHandler = $sectionHandler;
        // Union makes sure default settings are ignored if provided in argument
        $this->settings = $settings + array();
    }