%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/losik.varak.net/vendor/nette/application/src/Application/UI/
Upload File :
Create Path :
Current File : /www/varak.net/losik.varak.net/vendor/nette/application/src/Application/UI/Multiplier.php

<?php

/**
 * This file is part of the Nette Framework (https://nette.org)
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 */

declare(strict_types=1);

namespace Nette\Application\UI;

use Nette;


/**
 * Component multiplier.
 */
final class Multiplier extends Component
{
	/** @var callable */
	private $factory;


	public function __construct(callable $factory)
	{
		$this->factory = $factory;
	}


	protected function createComponent(string $name): Nette\ComponentModel\IComponent
	{
		return ($this->factory)($name, $this);
	}
}

Zerion Mini Shell 1.0