canCreate() публичный Метод

Determine if we can create an instance.
public canCreate ( string | array $moduleName, string $pluginName = null ) : boolean
$moduleName string | array Module name
$pluginName string Plugin name
Результат boolean
Пример #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testCanCreate()
 {
     $this->object->get('Blog', 'CommentForm');
     $this->assertTrue($this->object->canCreate('Blog', 'CommentForm'));
     $this->assertTrue($this->object->canCreate(array('Blog', 'CommentForm')));
 }