src/Support/Carpenter.php
protected function addServiceToBridge(Bridge $bridge, $service = null)
    {
        // Add a service if necessary.
        if (! is_null($service)) {
            $bridge->usingService($service);
        }

        return $bridge;
    }
protected function addServiceToBridge(Bridge $bridge, $service = null)
    {
        // Add a service if necessary.
        if (! is_null($service)) {
            $bridge->usingService($service);
        }

        return $bridge;
    }
protected function addServiceToBridge ( Bridge $ bridge , $ service = null ) { // Add a service if necessary. if ( ! is_null ( $ service ) ) { $ bridge -> usingService ( $ service ) ; } return $ bridge ; }
Adds a Service to the Bridge.

@param Bridge $bridge
@param string $service

@return Bridge
Adds a Service to the Bridge .