composer

Pimple Containter 容器使用实例代码

Pimple/Container安装composer require "pimple/pimple": "^3.0"代码加载并实例化require DIR . '/vendor/autoload.php';$pc = new Pimple\Container();参数存储$pc['app_id']='pimple';单例存储$pc['app']=function($c){$