File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed
Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -122,17 +122,9 @@ scans and keep performance high.
122122
123123## Command-Line Support
124124
125- CodeIgniter has never been known for it's strong CLI support. However,
125+ CodeIgniter has never been known for its strong CLI support. However,
126126if your package could benefit from it, create a new file under
127- ** system/Commands** . The class contained within is simply a controller
128- that is intended for CLI usage only. The ` index() ` method should provide
129- a list of available commands provided by that package.
130-
131- Routes must be added to ** system/Config/Routes.php** using the ` cli() `
132- method to ensure it is not accessible through the browser, but is
133- restricted to the CLI only.
134-
135- See the ** MigrationsCommand** file for an example.
127+ ** system/Commands** .
136128
137129## Documentation
138130
Original file line number Diff line number Diff line change 1919 * already loaded up and ready for us to use.
2020 */
2121
22- // Migrations
23- $ routes ->cli ('migrations/(:segment)/(:segment) ' , '\CodeIgniter\Commands\MigrationsCommand::$1/$2 ' );
24- $ routes ->cli ('migrations/(:segment) ' , '\CodeIgniter\Commands\MigrationsCommand::$1 ' );
25- $ routes ->cli ('migrations ' , '\CodeIgniter\Commands\MigrationsCommand::index ' );
26-
2722// CLI Catchall - uses a _remap to call Commands
2823$ routes ->cli ('ci(:any) ' , '\CodeIgniter\CLI\CommandRunner::index/$1 ' );
You can’t perform that action at this time.
0 commit comments