/** * {@inheritdoc} */ public function write(Configuration $configuration) { $ini = $this->getRenderer()->render($configuration->toArray()); if (false === ($result = $this->filesystem->put($this->file, $ini))) { throw new WriterException(sprintf('Cannot write configuration into file %s', $this->file)); } return $result; }