PCIT
class PCIT extends Container
核心方法 注入类(依赖),之后通过调用属性或方法,获取类.
$container->register();
$container['a'] = new A();
$a = $container['a'];
Properties
| protected | $providers | 服务提供器数组. | |
| EventsClient | $activity_events | ||
| FeedsClient | $activity_feeds | ||
| NotificationsClient | $activity_notifications | ||
| StarringClient | $activity_starring | ||
| WatchingClient | $activity_watching | ||
| Client | $authorizations | ||
| Client | $data | ||
| Client | $deployment | ||
| Client | $gist | ||
| CommentsClient | $gist_comments | ||
| Client | $github_apps_installations | ||
| Client | $oauth | ||
| AssigneesClient | $issue_assignees | ||
| CommentsClient | $issue_comments | ||
| EventsClient | $issue_events | ||
| Client | $issue | ||
| LabelsClient | $issue_labels | ||
| MilestonesClient | $issue_milestones | ||
| Client | $miscellaneous | ||
| Client | $orgs | ||
| BranchesClient | $repo_branches | ||
| CollaboratorsClient | $repo_collaborators | ||
| CommitsClient | $repo_commits | ||
| CommunityClient | $repo_community | ||
| ContentsClient | $repo_contents | ||
| MergingClient | $repo_merging | ||
| ReleasesClient | $repo_releases | ||
| StatusClient | $repo_status | ||
| WebhooksClient | $repo_webhooks | ||
| PHPMailer | |||
| Client | $pull_request | ||
| Client | $webhooks | ||
| Client | $runner | ||
| DockerHandler | $runner_agent_docker | ||
| TencentAI | $tencent_ai | ||
| Client | $user_basic_info | ||
| Run | $check_run | ||
| Suites | $check_suites | ||
| Curl | $curl | ||
| Docker | $docker | ||
| WeChatClient | $wechat_template_message | 
Methods
                    __construct(array $config = [], string $git_type = 'github', string $accessToken = null)
        
                                            
                
            PCIT constructor.
                    void
                
                
                    setConfig($config, $git_type)
        
                                            
                
            No description
                    setGitType($git_type = 'github')
        
                                            
                
            No description
                    setAccessToken(string|null $accessToken = null)
        
                                            
                
            No description
                    mixed
                
                
                    __get($name)
        
                                            
                
            通过调用属性,获取对象
                    mixed
                
                
                    __call($name, $arguments)
        
                                            
                
            通过调用方法,获取对象
Details
        at         line 113
                            
    __construct(array $config = [], string $git_type = 'github', string $accessToken = null)
        
    
    PCIT constructor.
        at         line 133
                            void
    setConfig($config, $git_type)
        
    
    
        at         line 138
                            
    setGitType($git_type = 'github')
        
    
    
        at         line 147
                            
    setAccessToken(string|null $accessToken = null)
        
    
    
        at         line 196
                            mixed
    __get($name)
        
    
    通过调用属性,获取对象
        at         line 216
                            mixed
    __call($name, $arguments)
        
    
    通过调用方法,获取对象