Advertisement
Guest User

Untitled

a guest
May 18th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $console->command('users:add',function($arguments) {
  2. /*
  3. $arguments = ['username'=>'foo','password'=>'bar] -- from cli --username= && --password=
  4. */
  5. // full access to the service container via $this->get($container_key);
  6. $success = $this->get('users')->add($arguments);
  7. };
  8.  
  9. php run users:add --username=foo --password=bar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement