Skip to content

Commit

Permalink
#122. Change move ApiAccessToken to Modules/{ModuleName}/Http/Request
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed Dec 11, 2018
1 parent 5a2765f commit ab4c112
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/blocks/FormRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ab4c112

Please sign in to comment.