/** * Copy item * * @param string $src * @param string $dest * @return void * @throws InvalidArgumentException */ public function copyItem($src, $dest) { try { $this->storage->copyItem($src, $dest); } catch (\InvalidArgumentException $e) { throw new \InvalidArgumentException(sprintf('The template %s could not be created.', "<strong>{$dest}</strong>"), $e->getCode(), $e); } }