<?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\Provider;

use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;

/**
 * Class OperatorProvider
 *
 * @since 1.0
 */
class OperatorProvider implements ServiceProviderInterface
{
	/**
	 * Registers the service provider with a DI container.
	 *
	 * @param   Container $container The DI container.
	 *
	 * @return  Container  Returns itself to support chaining.
	 *
	 * @since   1.0
	 */
	public function register(Container $container)
	{
		$container->alias('operator.copy', 'GeneratorBundle\\FileOperator\\CopyOperator')
			->buildSharedObject('GeneratorBundle\\FileOperator\\CopyOperator');

		$container->alias('operator.convert', 'GeneratorBundle\\FileOperator\\ConvertOperator')
			->buildSharedObject('GeneratorBundle\\FileOperator\\ConvertOperator');
	}
}
