Method | Description | |
---|---|---|
__construct ( |
UnitSetupService constructor. | |
importUnits ( ) : array | Imports units. |
Method | Description | |
---|---|---|
getSiPrefix ( string $name ) : |
Finds an SI Prefix by name. | |
getUnit ( string $name ) : |
Checks if the specified SI Prefix. |
public __construct ( |
||
$entityManager | ||
$kernel | Symfony\Component\HttpKernel\KernelInterface |
protected getSiPrefix ( string $name ) : |
||
$name | string | The SI Prefix name |
return |
public importUnits ( ) : array | ||
return | array | An array with the keys "skipped" and "imported" which contain the number of units skipped and imported |