You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							718 B
						
					
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							718 B
						
					
					
				<?php
 | 
						|
/* For licensing terms, see /license.txt */
 | 
						|
 | 
						|
/**
 | 
						|
 * Class HookCreateUser
 | 
						|
 * @var \SplObjectStorage $observers
 | 
						|
 */
 | 
						|
class HookCreateUser extends HookEvent implements HookCreateUserEventInterface
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Constructor
 | 
						|
     */
 | 
						|
    protected function __construct()
 | 
						|
    {
 | 
						|
        parent::__construct('HookCreateUser');
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Update all the observers
 | 
						|
     * @param int $type
 | 
						|
     *
 | 
						|
     * @return int
 | 
						|
     */
 | 
						|
    public function notifyCreateUser($type)
 | 
						|
    {
 | 
						|
        /** @var \HookCreateUserObserverInterface $observer */
 | 
						|
        $this->eventData['type'] = $type;
 | 
						|
        foreach ($this->observers as $observer) {
 | 
						|
            $observer->hookCreateUser($this);
 | 
						|
        }
 | 
						|
        return 1;
 | 
						|
    }
 | 
						|
}
 | 
						|
 |