container.php
public function didef($thing, $file) {
		$this->thingList[$thing] = $file;

		$args = func_get_args();
		//remove 2 known params
		array_shift($args);
		array_shift($args);
		if (count($args)) {
			$this->thingArgList[$thing] = $args;
		}
	}
public function didef($thing, $file) {
		$this->thingList[$thing] = $file;

		$args = func_get_args();
		//remove 2 known params
		array_shift($args);
		array_shift($args);
		if (count($args)) {
			$this->thingArgList[$thing] = $args;
		}
	}
public function didef ( $ thing , $ file ) { $ this -> thingList [ $ thing ] = $ file ; $ args = func_get_args ( ) ; //remove 2 known params array_shift ( $ args ) ; array_shift ( $ args ) ; if ( count ( $ args ) ) { $ this -> thingArgList [ $ thing ] = $ args ; } }
Define a file as a thing.
Any extra arguments are saved and used as constructor arguments
Define a file as a thing . Any extra arguments are saved and used as constructor arguments