app/Blueprint/Volumes/VolumeService/VolumeService.php
public function parse( Configuration $configuration, Service $mainService ) {

		if( !$configuration->has('volumes') )
			return;

		$volumesDefinition = $configuration->get( 'volumes' );
		foreach( $volumesDefinition as $key => $data ) {

			$type = 'object';
			if( is_string($data) )
				$type = 'string';

			$volumeParser = $this->volumeParserFactory->getParser( $type );
			$volume = $volumeParser->parse($key, $data);
			$mainService->addVolume($volume);

			$this->applyToSidekicks($mainService, $volume);
		}

	}
public function parse( Configuration $configuration, Service $mainService ) {

		if( !$configuration->has('volumes') )
			return;

		$volumesDefinition = $configuration->get( 'volumes' );
		foreach( $volumesDefinition as $key => $data ) {

			$type = 'object';
			if( is_string($data) )
				$type = 'string';

			$volumeParser = $this->volumeParserFactory->getParser( $type );
			$volume = $volumeParser->parse($key, $data);
			$mainService->addVolume($volume);

			$this->applyToSidekicks($mainService, $volume);
		}

	}
public function parse ( Configuration $ configuration , Service $ mainService ) { if ( ! $ configuration -> has ( 'volumes' ) ) return ; $ volumesDefinition = $ configuration -> get ( 'volumes' ) ; foreach ( $ volumesDefinition as $ key => $ data ) { $ type = 'object' ; if ( is_string ( $ data ) ) $ type = 'string' ; $ volumeParser = $ this -> volumeParserFactory -> getParser ( $ type ) ; $ volume = $ volumeParser -> parse ( $ key , $ data ) ; $ mainService -> addVolume ( $ volume ) ; $ this -> applyToSidekicks ( $ mainService , $ volume ) ; } }
Parse configuration and add volumes

@param Configuration $configuration
@param Service $mainService
Parse configuration and add volumes