Neos\Flow\Core\ApplicationContext::isProduction PHP Метод

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

Returns TRUE if this context is the Production context or a sub-context of it
public isProduction ( ) : boolean
Результат boolean
    public function isProduction()
    {
        return $this->rootContextString === 'Production';
    }

Usage Example

 /**
  * @test
  * @dataProvider isMethods
  */
 public function contextMethodsReturnTheCorrectValues($contextName, $isDevelopment, $isProduction, $isTesting, $parentContext)
 {
     $context = new ApplicationContext($contextName);
     $this->assertSame($isDevelopment, $context->isDevelopment());
     $this->assertSame($isProduction, $context->isProduction());
     $this->assertSame($isTesting, $context->isTesting());
     $this->assertSame((string) $parentContext, (string) $context->getParent());
 }
All Usage Examples Of Neos\Flow\Core\ApplicationContext::isProduction