src/Support/Services/ServiceProvider.php
/**
	 * Binds a class name to a callable which can provide instances of that class name. The callable is expected to
	 * return either a single instance or an array of instances.
	 *
	 * @param string $className
	 * @param callable $callable
	 */
Binds a class name to a callable which can provide instances of that class name. The callable is expected to
return either a single instance or an array of instances.

@param string $className
@param callable $callable
Binds a class name to a callable which can provide instances of that class name . The callable is expected to return either a single instance or an array of instances . @param string $className @param callable $callable
protected function bind($className, $callable) {
		if (!is_callable($callable)) {
			throw new InvalidArgumentException('Service providers must bind class names to callables.');
		}
		$this->binds[$className] = $callable;
	}
protected function bind ( $ className , $ callable ) { if ( ! is_callable ( $ callable ) ) { throw new InvalidArgumentException ( 'Service providers must bind class names to callables.' ) ; } $ this -> binds [ $ className ] = $ callable ; }
Binds a class name to a callable which can provide instances of that class name.
Binds a class name to a callable which can provide instances of that class name .