<?php
// ClassFactory.php
// Copyright P.Kassel, M.Seliger, G.Trietsch, all Rights Reserved
namespace Docuform\Api;use DI\Container;class ClassFactory{private $m_container;public function __construct($container){$this->m_container=$container;}public function Create($class){$api=$this->m_container->get('RestApi');$name=$api->getNamespace().$class;return new $name($this->m_container);}}