Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $console->command('users:add',function($arguments) {
- /*
- $arguments = ['username'=>'foo','password'=>'bar] -- from cli --username= && --password=
- */
- // full access to the service container via $this->get($container_key);
- $success = $this->get('users')->add($arguments);
- };
- php run users:add --username=foo --password=bar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement