/**
  * Get the services provided by the provider.
  *
  * @return array
  */
 public function provides()
 {
     $list = [];
     // Carregar lista de provider dos comandos
     $list = array_merge($list, Str::format(array_keys($this->commands), 'command.%s'));
     // Carregar lista de providers
     $list = array_merge($list, array_keys($this->providers));
     return $list;
 }
Exemple #2
0
 public function testFormat()
 {
     $str = Str::format('netforce', 'nome: %s');
     $this->assertEquals('nome: netforce', $str);
 }