From ab4c112ee42fb9907e8502675f3ab21de4f748e0 Mon Sep 17 00:00:00 2001 From: arthurkushman Date: Tue, 11 Dec 2018 23:22:18 +0300 Subject: [PATCH] #122. Change move ApiAccessToken to Modules/{ModuleName}/Http/Request --- src/blocks/FormRequest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blocks/FormRequest.php b/src/blocks/FormRequest.php index 930ef11..7ec644a 100644 --- a/src/blocks/FormRequest.php +++ b/src/blocks/FormRequest.php @@ -230,11 +230,10 @@ public function createAccessToken() [JSONApiInterface::PARAM_ACCESS_TOKEN][ApiInterface::RAML_KEY_DEFAULT]) === false ) { $this->setAccessTokenContent(); - $fileForm = strtolower(DirsInterface::APPLICATION_DIR) - . PhpInterface::SLASH . $this->generator->httpDir - . PhpInterface::SLASH . $this->generator->formRequestDir + $fileForm = FileManager::getModulePath($this->generator, true) . $this->generator->formRequestDir . PhpInterface::SLASH . JSONApiInterface::CLASS_API_ACCESS_TOKEN . PhpInterface::PHP_EXT; + $isCreated = FileManager::createFile( $fileForm, $this->sourceCode, FileManager::isRegenerated($this->generator->options)