<?php
/**
 * Part of Windwalker project. 
 *
 * @copyright  Copyright (C) 2016 LYRASOFT, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace GeneratorBundle\Controller\Component\Add;

use GeneratorBundle\Action\Component;
use GeneratorBundle\Controller\Component\AbstractComponentController;

/**
 * Class SubsystemController
 *
 * @since 1.0
 */
class SubsystemController extends AbstractComponentController
{
	/**
	 * Do Execute.
	 *
	 * @return  void
	 */
	protected function doExecute()
	{
		$this->config['item_name'] = '{{controller.item.name.lower}}';
		$this->config['list_name'] = '{{controller.list.name.lower}}';

		$this->doAction(new Component\Subsystem\PrepareAction);

		$this->doAction(new Component\Subsystem\CopyItemAction);

		$this->doAction(new Component\Subsystem\CopyListAction);
	}
}
