Skip to content

Commit fc45e5a

Browse files
committed
docs: move comment to the method docblock
1 parent b84d90a commit fc45e5a

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

system/CodeIgniter.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -809,22 +809,20 @@ protected function createController()
809809
/**
810810
* Runs the controller, allowing for _remap methods to function.
811811
*
812+
* CI4 supports three types of requests:
813+
* 1. Web: URI segments become parameters, sent to Controllers via Routes,
814+
* output controlled by Headers to browser
815+
* 2. Spark: accessed by CLI via the spark command, arguments are Command arguments,
816+
* sent to Commands by CommandRunner, output controlled by CLI class
817+
* 3. PHP CLI: accessed by CLI via php public/index.php, arguments become URI segments,
818+
* sent to Controllers via Routes, output varies
819+
*
812820
* @param mixed $class
813821
*
814822
* @return mixed
815823
*/
816824
protected function runController($class)
817825
{
818-
/*
819-
CI4 supports three types of requests:
820-
1. Web: URI segments become parameters, sent to Controllers via Routes,
821-
output controlled by Headers to browser
822-
2. Spark: accessed by CLI via the spark command, arguments are Command arguments,
823-
sent to Commands by CommandRunner, output controlled by CLI class
824-
3. PHP CLI: accessed by CLI via php public/index.php, arguments become URI segments,
825-
sent to Controllers via Routes, output varies
826-
*/
827-
828826
if (defined('SPARKED') && $this->request instanceof CLIRequest) {
829827
// This is a Spark request
830828
$params = $this->request->getArgs();

0 commit comments

Comments
 (0)