17 lines
		
	
	
	
		
			246 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			246 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Drupal\Component\Uuid;
 | 
						|
 | 
						|
/**
 | 
						|
 * Generates a UUID using the PECL extension.
 | 
						|
 */
 | 
						|
class Pecl implements UuidInterface {
 | 
						|
 | 
						|
  /**
 | 
						|
   * {@inheritdoc}
 | 
						|
   */
 | 
						|
  public function generate() {
 | 
						|
    return uuid_create(UUID_TYPE_DEFAULT);
 | 
						|
  }
 | 
						|
 | 
						|
}
 |