Location: PHPKode > projects > Spiral > ametaireau-spiral-272a2b1/framework/di/classes/construction/ServiceReferenceMethodConstructionStrategy.php
<?php

namespace spiral\framework\di\construction;

/**
 * Service Reference Method Construction Strategy
 *
 * @author		Alexis Métaireau <hide@address.com>
 * @copyright	2009 Spiral-project.org <http://www.spiral-project.org>
 * @license		GNU General Public License <http://www.gnu.org/licenses/gpl.html>
 */
class ServiceReferenceMethodConstructionStrategy extends DefaultMethodConstructionStrategy
{
	/**
	 * Call the method and return the result
	 * 
	 * @param	Container	Container of services
	 * @param	object		Current processed service
	 * @return 	mixed
	 */
	public function buildMethod(Container $container, $currentService = null)
	{
		return $this->getMethod();
	}
}
Return current item: Spiral