<?php
/****
 *
 * Description:
 *      
 * 
 * $Date$
 * Rev    : see git
 * Author : Yoshi Aoki <yoshi@44services.jp>
 * 
 *  This file is part of the Rock package.
 *
 * For the full copyright and license information, 
 * please read the LICENSE file that is distributed with the source code.
 *
 ****/
// @namespace
namespace Rock\OnSymfony\WATBundle\Type;
// @extends
use Rock\OnSymfony\WATBundle\Type\Type;
//
use Rock\Component\Configuration\Definition\Builder\Tree\ITreeBuilder;

/**
 *
 */
class DeleteType extends Type 
{
	/**
	 *
	 */
	protected function configurePath(ITreeBuilder $tree)
	{
		$tree->root('type.delete')
			->flow()
				// Alias
				->alias('Delete')
				// Delegators Provider
				->provider('delegator_provider.delete')
				->listener('delegator_provider.delete')
				// Flow Path
				->path()
					->state('init')
						->delegate('doInit')
						->end()
					->state('delete')
						->delegate('doCommit')
						->end()
					->page('complete')
						->delegate('doShowComplete')
						->end()
					->end()
		;
				
	}
}


