File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,18 @@ public function __construct(callable $callback)
4444 $ this ->callback = $ callback ;
4545 }
4646
47+ /**
48+ * Gets the middleware callback
49+ *
50+ * @return callable
51+ *
52+ * @since 2.10.0
53+ */
54+ public function getCallback () : callable
55+ {
56+ return $ this ->callback ;
57+ }
58+
4759 /**
4860 * {@inheritdoc}
4961 */
Original file line number Diff line number Diff line change @@ -41,6 +41,18 @@ public function __construct(callable $callback)
4141 $ this ->callback = $ callback ;
4242 }
4343
44+ /**
45+ * Gets the request handler callback
46+ *
47+ * @return callable
48+ *
49+ * @since 2.10.0
50+ */
51+ public function getCallback () : callable
52+ {
53+ return $ this ->callback ;
54+ }
55+
4456 /**
4557 * {@inheritdoc}
4658 */
You can’t perform that action at this time.
0 commit comments