Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
peripherad
/
vendor
/
mpdf
/
mpdf
/
src
/
Container
:
SimpleContainer.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Mpdf\Container; class SimpleContainer implements \Mpdf\Container\ContainerInterface { private $services; public function __construct(array $services) { $this->services = $services; } public function get($id) { if (!$this->has($id)) { throw new \Mpdf\Container\NotFoundException(sprintf('Unable to find service of key "%s"', $id)); } return $this->services[$id]; } public function has($id) { return isset($this->services[$id]); } public function getServices() { return $this->services; } }