Skip to content

Commit 77c2f8a

Browse files
committed
add helper method to get the help file contents for each maker
1 parent e8d226a commit 77c2f8a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Maker/AbstractMaker.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,17 @@ protected function addDependencies(array $dependencies, ?string $message = null)
5555
$message
5656
);
5757
}
58+
59+
/**
60+
* Get the help file contents needed for "setHelp()" of a maker.
61+
*
62+
* @param string $helpFileName the filename (omit path) of the help file located in config/help/
63+
* e.g. MakeController.txt
64+
*
65+
* @internal
66+
*/
67+
final protected function getHelpFileContents(string $helpFileName): string
68+
{
69+
return file_get_contents(\sprintf('%s/config/help/%s', \dirname(__DIR__, 2), $helpFileName));
70+
}
5871
}

0 commit comments

Comments
 (0)