<?php namespace Wasp\DI;

/**
 * Static container awareness trait
 *
 * @package Wasp
 * @subpackage Di
 * @author Dan Cox
 */
Trait StaticContainerAwareTrait
{
	/**
	 * Gets a service using the static container
	 *
	 * @return object
	 * @author Dan Cox
	 */
	protected function get($service)
	{
		$container = DI::getContainer();

		return $container->get($service);
	}

	/**
	 * Gets a parameter using the static container
	 *
	 * @return mixed
	 * @author Dan Cox
	 */
	public function param($key)
	{
		$container = DI::getContainer();

		return $container->param($key);
	}

}

<?php namespace Wasp\DI;

/**
 * Static container awareness trait
 *
 * @package Wasp
 * @subpackage Di
 * @author Dan Cox
 */
Trait StaticContainerAwareTrait
{
	/**
	 * Gets a service using the static container
	 *
	 * @return object
	 * @author Dan Cox
	 */
	protected static function get($service)
	{
		$container = DI::getContainer();

		return $container->get($service);
	}

	/**
	 * Gets a parameter using the static container
	 *
	 * @return mixed
	 * @author Dan Cox
	 */
	public static function param($key)
	{
		$container = DI::getContainer();

		return $container->param($key);
	}

}

Fix for non static method being called statically
Fix for non static method being called statically
