ACC SHELL

Path : /srv/www/vhosts/usoenergy/libs/Nette/Application/UI/
File Upload :
Current File : /srv/www/vhosts/usoenergy/libs/Nette/Application/UI/Multiplier.php

<?php

/**
 * This file is part of the Nette Framework (http://nette.org)
 *
 * Copyright (c) 2004, 2011 David Grudl (http://davidgrudl.com)
 *
 * For the full copyright and license information, please view
 * the file license.txt that was distributed with this source code.
 */

namespace Nette\Application\UI;

use Nette;



/**
 * Component multiplier.
 *
 * @author     David Grudl
 */
class Multiplier extends PresenterComponent
{
	/** @var Nette\Callback */
	private $factory;


	public function __construct($factory)
	{
		parent::__construct();
		$this->factory = callback($factory);
	}



	protected function createComponent($name)
	{
		return $this->factory->invoke($name, $this);
	}

}

ACC SHELL 2018