public function integrate($integrations, ConfigurationInterface $config = null)
    {
        list($config, $container) = array($config ?: $this->config, static::$container);

        foreach ((array) $integrations as $item) {
            $integration = is_string($item) ? new $item : $item;

            $container = $integration->define($container, $config);
        }

        static::$container = $container;

        return $this;
    }
public function integrate($integrations, ConfigurationInterface $config = null)
    {
        list($config, $container) = array($config ?: $this->config, static::$container);

        foreach ((array) $integrations as $item) {
            $integration = is_string($item) ? new $item : $item;

            $container = $integration->define($container, $config);
        }

        static::$container = $container;

        return $this;
    }
public function integrate ( $ integrations , ConfigurationInterface $ config = null ) { list ( $ config , $ container ) = array ( $ config ? : $ this -> config , static :: $ container ) ; foreach ( ( array ) $ integrations as $ item ) { $ integration = is_string ( $ item ) ? new $ item : $ item ; $ container = $ integration -> define ( $ container , $ config ) ; } static :: $ container = $ container ; return $ this ; }
Adds the specified integrations to the container.

@param  \Rougin\Slytherin\Integration\IntegrationInterface|array|string $integrations
@param  \Rougin\Slytherin\Integration\ConfigurationInterface|null       $config
@return self
Adds the specified integrations to the container .