public function apply(ComponentInterface $component, $operations)
    {
        if (is_string($operations) || $operations instanceof Closure) {
            $operations = [$operations];
        }
        foreach ($operations as $operation) {
            if (is_string($operation)) {
                list($key, $value) = explode(':', $operation);
                $operation = [$key => $value];
            } elseif ($operation instanceof Closure) {
                $operation = [$operation];
            }
            $this->applyInternal($component, $operation);
        }

    }
public function apply(ComponentInterface $component, $operations)
    {
        if (is_string($operations) || $operations instanceof Closure) {
            $operations = [$operations];
        }
        foreach ($operations as $operation) {
            if (is_string($operation)) {
                list($key, $value) = explode(':', $operation);
                $operation = [$key => $value];
            } elseif ($operation instanceof Closure) {
                $operation = [$operation];
            }
            $this->applyInternal($component, $operation);
        }

    }
public function apply ( ComponentInterface $ component , $ operations ) { if ( is_string ( $ operations ) || $ operations instanceof Closure ) { $ operations = [ $ operations ] ; } foreach ( $ operations as $ operation ) { if ( is_string ( $ operation ) ) { list ( $ key , $ value ) = explode ( ':' , $ operation ) ; $ operation = [ $ key => $ value ] ; } elseif ( $ operation instanceof Closure ) { $ operation = [ $ operation ] ; } $ this -> applyInternal ( $ component , $ operation ) ; } }
Applies operations to target component.

@param ComponentInterface $component
@param $operations
Applies operations to target component .