for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Scrawler package.
*
* (c) Pranjal Pandey <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Scrawler\Arca\Manager;
use Scrawler\Arca\Model;
/**
* Class for initializing and managing models.
class ModelManager
{
public function __construct(private \Di\Container $container)
}
* Create a new model.
public function create(string $name): Model
return $this->container->make(Model::class, ['name' => $name]);