File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 45
45
*/
46
46
class ResponseAspect extends AbstractAspect
47
47
{
48
+ /**
49
+ * @Value("soar.cut_classes")
50
+ * @var array
51
+ */
48
52
public $ classes ;
53
+ /**
54
+ * @Value("soar")
55
+ * @var array
56
+ */
49
57
protected $ config ;
58
+ /**
59
+ * @Inject()
60
+ * @var \Wilbur\HyperfSoar\SoarService
61
+ */
50
62
protected $ service ;
51
63
52
- public function __construct (ContainerInterface $ container )
53
- {
54
- $ this ->service = $ container ->get (SoarService::class);
55
- $ this ->config = $ container ->get (ConfigInterface::class)->get ('soar ' );
56
- $ this ->classes = $ this ->config ['cut_classes ' ] ?? ['Hyperf\HttpServer\Response::json ' ,];
57
- }
64
+ // public function __construct(ContainerInterface $container)
65
+ // {
66
+ // $this->service = $container->get(SoarService::class);
67
+ // $this->config = $container->get(ConfigInterface::class)->get('soar');
68
+ // $this->classes = $this->config['cut_classes'] ?? ['Hyperf\HttpServer\Response::json',];
69
+ // }
58
70
59
71
/**
60
72
* @throws \Hyperf\Di\Exception\Exception
You can’t perform that action at this time.
0 commit comments