{"push_id":1156091808,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"01b78246c7f21ffb5907fed3a5354be857305aa9","before":"3f46548cd70cef5ca884aced24c0f2f1120eb1b5","commits":[{"sha":"01b78246c7f21ffb5907fed3a5354be857305aa9","author":{"name":"MasterHans","email":"bb664d38bb6ac06b79f6f4524870c64d31e32d3d@gmail.com"},"message":"16. Создаём в frontend/controllers/MainController.php actionMail:\n   public function actionMail()\n    {\n        $send = new Common();\n        $send->sendMail('suvorov.ag.75@gmail.com','Test','Привет дарагой!!!!','От меня!!!');\n\n    }\n\n    Прописываем верные e-mail и настройки. Проверяем работу:\n    http://gb-yii2-l3.in/main/mail\n17. Устанавливаем расширение Imagine. Для тренеровки:\n    composer require --prefer-dist yiisoft/yii2-imagine\n\n    добавляем в компоненты\n    frontend/components/common.php\n\n     public function cutImage($filename)\n        {\n            Image::crop($filename,250,250)\n            ->save(__DIR__ . '/../web/images/cut/about.jpg', ['quality' => 50]);\n        }\n\n    добавляем в frontend/controllers/MainController.php actionImage:\n\n    public function actionImage()\n        {\n            $image = new Common();\n            $image->cutImage(__DIR__ . '/../web/images/about.jpg');\n        }\n    Проверяем работу:\n    http://gb-yii2-l3.in/main/image\n    В папке cut появился файл картинки обрезанный до 250х250","distinct":true,"url":"https://api.github.com/repos/MasterHans/gb-yii2-l3.in/commits/01b78246c7f21ffb5907fed3a5354be857305aa9"}]}
{"actor":{"display_login":"MasterHans"}}