for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Automation tool mixed with code generator for easier continuous development
*
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2018, HiQDev (http://hiqdev.com/)
*/
namespace hidev\handlers;
use Yii;
* Handler for copying.
class CopyHandler extends BaseHandler
{
* {@inheritdoc}
public function renderPath($path, $data)
try {
copy($data->getCopy(), $path);
} catch (\Exception $e) {
throw new \RuntimeException("Failed to copy file \"{$data->getCopy()}\" to \"$path\": {$e->getMessage()}");
}
Yii::warning('Copied file: ' . $path);
public function parsePath($path, $minimal = null)
return;