IPService deprecated
class IPService implements ApplicationAwareInterface, LoggerAwareInterface (View source)
deprecated
Traits
Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface
Trait LoggerAwareTrait A trait used with LoggerAwareInterface
Constants
| deprecated IPRANGEFLAG_BLACKLIST | 
                     
  | 
            
| deprecated IPRANGEFLAG_WHITELIST | 
                     
  | 
            
| deprecated IPRANGEFLAG_MANUAL | 
                     
  | 
            
| deprecated IPRANGEFLAG_AUTOMATIC | 
                     
  | 
            
| deprecated IPRANGETYPE_BLACKLIST_MANUAL | 
                     
  | 
            
| deprecated IPRANGETYPE_BLACKLIST_AUTOMATIC | 
                     
  | 
            
| deprecated IPRANGETYPE_WHITELIST_MANUAL | 
                     
  | 
            
Properties
| protected Application | $app | from ApplicationAwareTrait | |
| protected Repository | $config | ||
| protected Connection | $connection | ||
| protected Request | $request | 
Methods
No description
No description
No description
No description
No description
Details
        
                            
    setApplication(Application $app)
        
    
    Setter method for the application
        
                            
    getLoggerChannel()
        
    
    No description
        
                            
    __construct(Repository $config, Connection $connection, Request $request)
        
    
    No description
        
                            AddressInterface
    getRequestIPAddress()
        deprecated
    
    deprecated
No description
        
                            bool
    isBlacklisted(AddressInterface $ip = null)
        deprecated
    
    deprecated
No description
        
                            bool
    isWhitelisted(AddressInterface $ip = null)
        deprecated
    
    deprecated
No description
        
                            string
    getErrorMessage()
        deprecated
    
    deprecated
No description
        
                            
    logFailedLogin(AddressInterface $ip = null, bool $ignoreConfig = false)
        deprecated
    
    deprecated
No description
        
                            bool
    failedLoginsThresholdReached(AddressInterface $ip = null, bool $ignoreConfig = false)
        deprecated
    
    deprecated
No description
        
                            
    addToBlacklistForThresholdReached(AddressInterface $ip = null, bool $ignoreConfig = false)
        deprecated
    
    deprecated
No description
        
                            IPRange
    createRange(RangeInterface $range, int $type, DateTime $expiration = null)
        deprecated
    
    deprecated
No description
        
                            IPRange[]|Generator
    getRanges(int $type, bool $includeExpired = false)
        deprecated
    
    deprecated
No description
        
                            IPRange|null
    getRangeByID(int $id)
        deprecated
    
    deprecated
No description
        
                            
    deleteRange(IPRange|int $range)
        deprecated
    
    deprecated
No description
        
                            int
    deleteFailedLoginAttempts(int|null $maxAge = null)
        deprecated
    
    deprecated
No description
        
                            int
    deleteAutomaticBlacklist(bool $onlyExpired = true)
        deprecated
    
    deprecated
No description
        
                            IPAddress
    getRequestIP()
        deprecated
    
    deprecated
No description
        
                            
    isBanned(mixed $ip = false)
        deprecated
    
    deprecated
No description
        
                            
    createIPBan(mixed $ip = false, mixed $ignoreConfig = false)
        deprecated
    
    deprecated
No description
        
                            
    logSignupRequest(bool $ignoreConfig = false)
        deprecated
    
    deprecated
No description
        
                            
    signupRequestThreshholdReached(bool $ignoreConfig = false)
        deprecated
    
    deprecated
No description
        
                            
    signupRequestThresholdReached(bool $ignoreConfig = false)
        deprecated
    
    deprecated
No description
        
                    protected        int|null
    getRangeType(AddressInterface $ip)
        deprecated
    
    deprecated
No description
        
                        private    IpAccessControlService
    getFailedLoginService()
        
    
    No description