@@ -7,19 +7,19 @@ |
||
7 | 7 | abstract class DependencyHandler implements DependencyHandlerInterface |
8 | 8 | { |
9 | 9 | |
10 | - /** |
|
11 | - * @var EE_Dependency_Map $dependency_map |
|
12 | - */ |
|
13 | - protected $dependency_map; |
|
10 | + /** |
|
11 | + * @var EE_Dependency_Map $dependency_map |
|
12 | + */ |
|
13 | + protected $dependency_map; |
|
14 | 14 | |
15 | 15 | |
16 | - /** |
|
17 | - * DependencyHandler constructor. |
|
18 | - * |
|
19 | - * @param EE_Dependency_Map $dependency_map |
|
20 | - */ |
|
21 | - public function __construct(EE_Dependency_Map $dependency_map) |
|
22 | - { |
|
23 | - $this->dependency_map = $dependency_map; |
|
24 | - } |
|
16 | + /** |
|
17 | + * DependencyHandler constructor. |
|
18 | + * |
|
19 | + * @param EE_Dependency_Map $dependency_map |
|
20 | + */ |
|
21 | + public function __construct(EE_Dependency_Map $dependency_map) |
|
22 | + { |
|
23 | + $this->dependency_map = $dependency_map; |
|
24 | + } |
|
25 | 25 | } |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | interface DependencyHandlerInterface |
6 | 6 | { |
7 | - /** |
|
8 | - * @since $VID:$ |
|
9 | - */ |
|
10 | - public function registerDependencies(); |
|
7 | + /** |
|
8 | + * @since $VID:$ |
|
9 | + */ |
|
10 | + public function registerDependencies(); |
|
11 | 11 | } |
@@ -4,45 +4,45 @@ |
||
4 | 4 | interface EnqueueAssetsInterface |
5 | 5 | { |
6 | 6 | |
7 | - /** |
|
8 | - * a place to register scripts and stylesheets with WordPress core |
|
9 | - * IMPORTANT !!! |
|
10 | - * ALL JavaScript files need to be registered for loading in the footer |
|
11 | - * by setting the 5th parameter of wp_register_script() to ` true ` |
|
12 | - * |
|
13 | - * @return void |
|
14 | - */ |
|
15 | - public function registerScriptsAndStylesheets(); |
|
7 | + /** |
|
8 | + * a place to register scripts and stylesheets with WordPress core |
|
9 | + * IMPORTANT !!! |
|
10 | + * ALL JavaScript files need to be registered for loading in the footer |
|
11 | + * by setting the 5th parameter of wp_register_script() to ` true ` |
|
12 | + * |
|
13 | + * @return void |
|
14 | + */ |
|
15 | + public function registerScriptsAndStylesheets(); |
|
16 | 16 | |
17 | - /** |
|
18 | - * a place to enqueue previously registered stylesheets |
|
19 | - * this will be called during the wp_enqueue_scripts hook for frontend requests |
|
20 | - * |
|
21 | - * @return void |
|
22 | - */ |
|
23 | - public function enqueueStylesheets(); |
|
17 | + /** |
|
18 | + * a place to enqueue previously registered stylesheets |
|
19 | + * this will be called during the wp_enqueue_scripts hook for frontend requests |
|
20 | + * |
|
21 | + * @return void |
|
22 | + */ |
|
23 | + public function enqueueStylesheets(); |
|
24 | 24 | |
25 | - /** |
|
26 | - * a place to enqueue previously registered stylesheets |
|
27 | - * this will be called during the admin_enqueue_scripts hook for admin requests |
|
28 | - * |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function enqueueAdminStylesheets(); |
|
25 | + /** |
|
26 | + * a place to enqueue previously registered stylesheets |
|
27 | + * this will be called during the admin_enqueue_scripts hook for admin requests |
|
28 | + * |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function enqueueAdminStylesheets(); |
|
32 | 32 | |
33 | - /** |
|
34 | - * a place to enqueue previously registered scripts for frontend requests |
|
35 | - * |
|
36 | - * @return void |
|
37 | - */ |
|
38 | - public function enqueueScripts(); |
|
33 | + /** |
|
34 | + * a place to enqueue previously registered scripts for frontend requests |
|
35 | + * |
|
36 | + * @return void |
|
37 | + */ |
|
38 | + public function enqueueScripts(); |
|
39 | 39 | |
40 | - /** |
|
41 | - * a place to enqueue previously registered scripts for admin requests |
|
42 | - * |
|
43 | - * @return void |
|
44 | - */ |
|
45 | - public function enqueueAdminScripts(); |
|
40 | + /** |
|
41 | + * a place to enqueue previously registered scripts for admin requests |
|
42 | + * |
|
43 | + * @return void |
|
44 | + */ |
|
45 | + public function enqueueAdminScripts(); |
|
46 | 46 | } |
47 | 47 | // End of file EnqueueAssetsInterface.php |
48 | 48 | // Location: EventEspresso\core\domain/EnqueueAssetsInterface.php |
@@ -2,12 +2,12 @@ discard block |
||
2 | 2 | <p><?php esc_html_e('Adjust the settings for the PayPal Pro payment gateway.', 'event_espresso'); ?></p> |
3 | 3 | <p> |
4 | 4 | <?php |
5 | - printf( |
|
6 | - esc_html__('See %1$shere%2$s for list of currencies supported by Paypal Pro.', 'event_espresso'), |
|
7 | - "<a href='https://www.paypal.com/multicurrency' target='_blank' rel='noopener noreferrer'>", |
|
8 | - "</a>" |
|
9 | - ); |
|
10 | - ?> |
|
5 | + printf( |
|
6 | + esc_html__('See %1$shere%2$s for list of currencies supported by Paypal Pro.', 'event_espresso'), |
|
7 | + "<a href='https://www.paypal.com/multicurrency' target='_blank' rel='noopener noreferrer'>", |
|
8 | + "</a>" |
|
9 | + ); |
|
10 | + ?> |
|
11 | 11 | </p> |
12 | 12 | <p><strong><?php esc_html_e('PayPal Pro Settings', 'event_espresso'); ?></strong></p> |
13 | 13 | <ul> |
@@ -18,48 +18,48 @@ discard block |
||
18 | 18 | <li> |
19 | 19 | <strong><?php esc_html_e('PayPal API Username', 'event_espresso'); ?></strong><br/> |
20 | 20 | <?php |
21 | - printf( |
|
22 | - esc_html__( |
|
23 | - 'Enter your API Username for PayPal. Learn how to find your %1$sAPI Username%2$s.', |
|
24 | - 'event_espresso' |
|
25 | - ), |
|
26 | - '<a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/merchant/wppro/WPProIntegrationSteps-outside#SectionB" target="_blank" rel="noopener noreferrer">', |
|
27 | - '</a>' |
|
28 | - ); |
|
29 | - ?> |
|
21 | + printf( |
|
22 | + esc_html__( |
|
23 | + 'Enter your API Username for PayPal. Learn how to find your %1$sAPI Username%2$s.', |
|
24 | + 'event_espresso' |
|
25 | + ), |
|
26 | + '<a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/merchant/wppro/WPProIntegrationSteps-outside#SectionB" target="_blank" rel="noopener noreferrer">', |
|
27 | + '</a>' |
|
28 | + ); |
|
29 | + ?> |
|
30 | 30 | </li> |
31 | 31 | <li> |
32 | 32 | <strong><?php esc_html_e('PayPal API Password', 'event_espresso'); ?></strong><br/> |
33 | 33 | <?php |
34 | - printf( |
|
35 | - esc_html__( |
|
36 | - 'Enter your API Password for PayPal. Learn how to find your %1$sAPI Password%2$s.', |
|
37 | - 'event_espresso' |
|
38 | - ), |
|
39 | - '<a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/merchant/wppro/WPProIntegrationSteps-outside#SectionB" target="_blank" rel="noopener noreferrer">', |
|
40 | - '</a>' |
|
41 | - ); |
|
42 | - ?> |
|
34 | + printf( |
|
35 | + esc_html__( |
|
36 | + 'Enter your API Password for PayPal. Learn how to find your %1$sAPI Password%2$s.', |
|
37 | + 'event_espresso' |
|
38 | + ), |
|
39 | + '<a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/merchant/wppro/WPProIntegrationSteps-outside#SectionB" target="_blank" rel="noopener noreferrer">', |
|
40 | + '</a>' |
|
41 | + ); |
|
42 | + ?> |
|
43 | 43 | </li> |
44 | 44 | <li> |
45 | 45 | <strong><?php esc_html_e('PayPal API Signature', 'event_espresso'); ?></strong><br/> |
46 | 46 | <?php |
47 | - printf( |
|
48 | - esc_html__( |
|
49 | - 'Enter your API Signature for PayPal. Learn how to find your %1$sAPI Signature%2$s.', |
|
50 | - 'event_espresso' |
|
51 | - ), |
|
52 | - '<a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/merchant/wppro/WPProIntegrationSteps-outside#SectionB" target="_blank" rel="noopener noreferrer">', |
|
53 | - '</a>' |
|
54 | - ); |
|
55 | - ?> |
|
47 | + printf( |
|
48 | + esc_html__( |
|
49 | + 'Enter your API Signature for PayPal. Learn how to find your %1$sAPI Signature%2$s.', |
|
50 | + 'event_espresso' |
|
51 | + ), |
|
52 | + '<a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/merchant/wppro/WPProIntegrationSteps-outside#SectionB" target="_blank" rel="noopener noreferrer">', |
|
53 | + '</a>' |
|
54 | + ); |
|
55 | + ?> |
|
56 | 56 | </li> |
57 | 57 | <li> |
58 | 58 | <strong><?php esc_html_e('Country Currency', 'event_espresso'); ?></strong><br/> |
59 | 59 | <?php esc_html_e( |
60 | - 'Select the currency for your country. Payments will be accepted in this currency.', |
|
61 | - 'event_espresso' |
|
62 | - ); ?> |
|
60 | + 'Select the currency for your country. Payments will be accepted in this currency.', |
|
61 | + 'event_espresso' |
|
62 | + ); ?> |
|
63 | 63 | </li> |
64 | 64 | <li> |
65 | 65 | <strong><?php esc_html_e('Accepted Card Types', 'event_espresso'); ?></strong><br/> |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | <li> |
69 | 69 | <strong><?php esc_html_e('Use the Debugging Feature and the PayPal Sandbox', 'event_espresso'); ?></strong><br/> |
70 | 70 | <?php esc_html_e( |
71 | - 'Specify if you want to test the payment gateway by submitting a test transaction. If this option is enabled, be sure to enter your PayPal sandbox credentials in the fields above. Be sure to turn this setting off when you are done testing.', |
|
72 | - 'event_espresso' |
|
73 | - ); ?> |
|
71 | + 'Specify if you want to test the payment gateway by submitting a test transaction. If this option is enabled, be sure to enter your PayPal sandbox credentials in the fields above. Be sure to turn this setting off when you are done testing.', |
|
72 | + 'event_espresso' |
|
73 | + ); ?> |
|
74 | 74 | </li> |
75 | 75 | <li> |
76 | 76 | <strong><?php esc_html_e('Button Image URL', 'event_espresso'); ?></strong><br/> |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <p><strong><?php esc_html_e('Message Types', 'event_espresso'); ?></strong></p> |
2 | 2 | <p> |
3 | 3 | <?php |
4 | - printf( |
|
5 | - esc_html__( |
|
6 | - 'Messages are email notifications that are sent out by Event Espresso. Message Types are the %1$skinds%2$s of messages that get delivered. They can be thought of as the "type" of package that is being delivered by the messenger. For example, Event Espresso comes with two Message Types attached to the Email Messenger:', |
|
7 | - 'event_espresso' |
|
8 | - ), |
|
9 | - '<em>', |
|
10 | - '</em>' |
|
11 | - ); |
|
12 | - ?> |
|
4 | + printf( |
|
5 | + esc_html__( |
|
6 | + 'Messages are email notifications that are sent out by Event Espresso. Message Types are the %1$skinds%2$s of messages that get delivered. They can be thought of as the "type" of package that is being delivered by the messenger. For example, Event Espresso comes with two Message Types attached to the Email Messenger:', |
|
7 | + 'event_espresso' |
|
8 | + ), |
|
9 | + '<em>', |
|
10 | + '</em>' |
|
11 | + ); |
|
12 | + ?> |
|
13 | 13 | </p> |
14 | 14 | <ul> |
15 | 15 | <li> |
@@ -24,20 +24,20 @@ discard block |
||
24 | 24 | <p><strong><?php esc_html_e('Contexts', 'event_espresso'); ?></strong></p> |
25 | 25 | <p> |
26 | 26 | <?php esc_html_e( |
27 | - 'Each Message Type (kind of message) has different contexts. Contexts are dynamic and typically represent recipients (individuals receiving email notifications). For example, when the Registration Confirmation message type is triggered, it will send out a message to the following recipients: Event Administrator, Primary Registrant, and Additional Registrants. On the other hand, the Payment Message Type has only two recipients: Event Administrator and Primary Registrant.', |
|
28 | - 'event_espresso' |
|
29 | - ); ?> |
|
27 | + 'Each Message Type (kind of message) has different contexts. Contexts are dynamic and typically represent recipients (individuals receiving email notifications). For example, when the Registration Confirmation message type is triggered, it will send out a message to the following recipients: Event Administrator, Primary Registrant, and Additional Registrants. On the other hand, the Payment Message Type has only two recipients: Event Administrator and Primary Registrant.', |
|
28 | + 'event_espresso' |
|
29 | + ); ?> |
|
30 | 30 | </p> |
31 | 31 | <p> |
32 | 32 | <?php esc_html_e( |
33 | - 'A message context can be deactivated by removing a recipient from the "TO" field. This will set the field to blank and you can save changes. Deactivated message contexts will appear in grey when viewed in the Messages Overview tab. To re-activate a message context, go to that message context and setup a recipient (using one of the available shortcodes) and save changes. This will reactivate the message context and it will appear as blue in the Messages Overview tab.', |
|
34 | - 'event_espresso' |
|
35 | - ); ?> |
|
33 | + 'A message context can be deactivated by removing a recipient from the "TO" field. This will set the field to blank and you can save changes. Deactivated message contexts will appear in grey when viewed in the Messages Overview tab. To re-activate a message context, go to that message context and setup a recipient (using one of the available shortcodes) and save changes. This will reactivate the message context and it will appear as blue in the Messages Overview tab.', |
|
34 | + 'event_espresso' |
|
35 | + ); ?> |
|
36 | 36 | </p> |
37 | 37 | <p><strong><?php esc_html_e('Activation / Deactivation of Message Types', 'event_espresso'); ?></strong></p> |
38 | 38 | <p> |
39 | 39 | <?php esc_html_e( |
40 | - 'When a new install of Event Espresso is activated, all message types will be activated except for those for Cancelled and Declined registrations. The message types for Cancelled and Declined registrations can be easily activated through the Settings tab for Messages. Deactivating and re-activating Event Espresso will keep the current settings saved.', |
|
41 | - 'event_espresso' |
|
42 | - ); ?> |
|
40 | + 'When a new install of Event Espresso is activated, all message types will be activated except for those for Cancelled and Declined registrations. The message types for Cancelled and Declined registrations can be easily activated through the Settings tab for Messages. Deactivating and re-activating Event Espresso will keep the current settings saved.', |
|
41 | + 'event_espresso' |
|
42 | + ); ?> |
|
43 | 43 | </p> |
@@ -53,7 +53,7 @@ |
||
53 | 53 | 'The URL of the button image for this payment method in the registration process. You may use any uploaded image on your website (click %s next to the field to select). If left blank, the default button image will be used.', |
54 | 54 | 'event_espresso' |
55 | 55 | ), |
56 | - '<img src="' . admin_url('images/media-button-image.gif') . '">' |
|
56 | + '<img src="'.admin_url('images/media-button-image.gif').'">' |
|
57 | 57 | ); |
58 | 58 | ?> |
59 | 59 | </li> |
@@ -12,62 +12,62 @@ discard block |
||
12 | 12 | <strong><?php esc_html_e('Name', 'event_espresso'); ?></strong> |
13 | 13 | <br> |
14 | 14 | <?php esc_html_e( |
15 | - 'The name of the payment method as customers see it in the registration form, in emails, in receipts, etc.', |
|
16 | - 'event_espresso' |
|
17 | - ); ?> |
|
15 | + 'The name of the payment method as customers see it in the registration form, in emails, in receipts, etc.', |
|
16 | + 'event_espresso' |
|
17 | + ); ?> |
|
18 | 18 | </li> |
19 | 19 | <li> |
20 | 20 | <strong><?php esc_html_e('Description', 'event_espresso'); ?></strong> |
21 | 21 | <br /> |
22 | 22 | <?php esc_html_e( |
23 | - 'The description of how to use the payment method as customers will see it. This is mostly only seen during registration.', |
|
24 | - 'event_espresso' |
|
25 | - ); ?> |
|
23 | + 'The description of how to use the payment method as customers will see it. This is mostly only seen during registration.', |
|
24 | + 'event_espresso' |
|
25 | + ); ?> |
|
26 | 26 | </li> |
27 | 27 | <li> |
28 | 28 | <strong><?php esc_html_e('Admin-Only Name', 'event_espresso'); ?></strong> |
29 | 29 | <br /> |
30 | 30 | <?php esc_html_e( |
31 | - 'The name of the payment method as seen internally by site administrators and staff.', |
|
32 | - 'event_espresso' |
|
33 | - ); ?> |
|
31 | + 'The name of the payment method as seen internally by site administrators and staff.', |
|
32 | + 'event_espresso' |
|
33 | + ); ?> |
|
34 | 34 | </li> |
35 | 35 | <li> |
36 | 36 | <strong><?php esc_html_e('Admin-Only Description', 'event_espresso'); ?></strong> |
37 | 37 | <br /> |
38 | 38 | <?php esc_html_e( |
39 | - 'The description of the payment method as seen internally by site administrators and staff.', |
|
40 | - 'event_espresso' |
|
41 | - ); ?> |
|
39 | + 'The description of the payment method as seen internally by site administrators and staff.', |
|
40 | + 'event_espresso' |
|
41 | + ); ?> |
|
42 | 42 | </li> |
43 | 43 | <li> |
44 | 44 | <strong><?php esc_html_e('Debug (sandbox) Mode', 'event_espresso'); ?></strong> |
45 | 45 | <br /> |
46 | 46 | <?php esc_html_e( |
47 | - 'Many payment methods have a debug/sandbox mode where payments are not processed but are only simulated. This is helpful when setup and debugging.', |
|
48 | - 'event_espresso' |
|
49 | - ); ?> |
|
47 | + 'Many payment methods have a debug/sandbox mode where payments are not processed but are only simulated. This is helpful when setup and debugging.', |
|
48 | + 'event_espresso' |
|
49 | + ); ?> |
|
50 | 50 | </li> |
51 | 51 | <li> |
52 | 52 | <strong><?php esc_html_e('Open by Default', 'event_espresso'); ?></strong> |
53 | 53 | <br /> |
54 | 54 | <?php esc_html_e( |
55 | - 'If checked, this payment method will be selected by default (assuming no other valid payment methods are also marked as open by default.)', |
|
56 | - 'event_espresso' |
|
57 | - ); ?> |
|
55 | + 'If checked, this payment method will be selected by default (assuming no other valid payment methods are also marked as open by default.)', |
|
56 | + 'event_espresso' |
|
57 | + ); ?> |
|
58 | 58 | </li> |
59 | 59 | <li> |
60 | 60 | <strong><?php esc_html_e('Button URL', 'event_espresso'); ?></strong> |
61 | 61 | <br /> |
62 | 62 | <?php |
63 | - printf( |
|
64 | - esc_html__( |
|
65 | - 'The URL of the button image for this payment method in the registration process. You may use any uploaded image on your website (click %s next to the field to select). If left blank, the default button image will be used.', |
|
66 | - 'event_espresso' |
|
67 | - ), |
|
68 | - '<img src="' . admin_url('images/media-button-image.gif') . '">' |
|
69 | - ); |
|
70 | - ?> |
|
63 | + printf( |
|
64 | + esc_html__( |
|
65 | + 'The URL of the button image for this payment method in the registration process. You may use any uploaded image on your website (click %s next to the field to select). If left blank, the default button image will be used.', |
|
66 | + 'event_espresso' |
|
67 | + ), |
|
68 | + '<img src="' . admin_url('images/media-button-image.gif') . '">' |
|
69 | + ); |
|
70 | + ?> |
|
71 | 71 | </li> |
72 | 72 | <li> |
73 | 73 | <strong><?php esc_html_e('Usable From', 'event_espresso'); ?></strong> |
@@ -76,15 +76,15 @@ discard block |
||
76 | 76 | <ul> |
77 | 77 | <li> |
78 | 78 | <?php esc_html_e( |
79 | - 'Front-end Registration Page: the payment method will appear as an option during the normal registration process to customers and they can use it to process payments.', |
|
80 | - 'event_espresso' |
|
81 | - ); ?> |
|
79 | + 'Front-end Registration Page: the payment method will appear as an option during the normal registration process to customers and they can use it to process payments.', |
|
80 | + 'event_espresso' |
|
81 | + ); ?> |
|
82 | 82 | </li> |
83 | 83 | <li> |
84 | 84 | <?php esc_html_e( |
85 | - 'Admin Registration Page: when recording payments made from the transaction admin page, the payment method will appear as an option. Note: currently payments can only be RECORDED from the admin, they cannot be PROCESSED.', |
|
86 | - 'event_espresso' |
|
87 | - ); ?> |
|
85 | + 'Admin Registration Page: when recording payments made from the transaction admin page, the payment method will appear as an option. Note: currently payments can only be RECORDED from the admin, they cannot be PROCESSED.', |
|
86 | + 'event_espresso' |
|
87 | + ); ?> |
|
88 | 88 | </li> |
89 | 89 | </ul> |
90 | 90 | </li> |
@@ -92,14 +92,14 @@ discard block |
||
92 | 92 | <strong><?php esc_html_e('Recommendations', 'event_espresso'); ?></strong> |
93 | 93 | <br /> |
94 | 94 | <?php esc_html_e( |
95 | - 'To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
96 | - 'event_espresso' |
|
95 | + 'To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.', |
|
96 | + 'event_espresso' |
|
97 | 97 | ); ?> |
98 | 98 | <p> |
99 | 99 | <strong><?php esc_html_e('Screen Options', 'event_espresso'); ?></strong> |
100 | 100 | <br /> |
101 | 101 | <?php esc_html_e( |
102 | - 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
103 | - 'event_espresso' |
|
104 | - ); ?> |
|
102 | + 'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.', |
|
103 | + 'event_espresso' |
|
104 | + ); ?> |
|
105 | 105 | </p> |
@@ -8,31 +8,31 @@ |
||
8 | 8 | |
9 | 9 | class SitePermissions extends JsonDataNode |
10 | 10 | { |
11 | - const NODE_NAME = 'sitePermissions'; |
|
12 | - |
|
13 | - /** |
|
14 | - * @var FeatureFlags |
|
15 | - */ |
|
16 | - private $feature_flags; |
|
17 | - |
|
18 | - |
|
19 | - /** |
|
20 | - * @param FeatureFlags $feature_flags |
|
21 | - * @param JsonDataNodeValidator $validator |
|
22 | - */ |
|
23 | - public function __construct(FeatureFlags $feature_flags, JsonDataNodeValidator $validator) |
|
24 | - { |
|
25 | - $this->feature_flags = $feature_flags; |
|
26 | - parent::__construct($validator); |
|
27 | - $this->setNodeName(SitePermissions::NODE_NAME); |
|
28 | - } |
|
29 | - |
|
30 | - |
|
31 | - /** |
|
32 | - * @inheritDoc |
|
33 | - */ |
|
34 | - public function initialize() |
|
35 | - { |
|
36 | - $this->setDataArray($this->feature_flags->getAllowedFeatures()); |
|
37 | - } |
|
11 | + const NODE_NAME = 'sitePermissions'; |
|
12 | + |
|
13 | + /** |
|
14 | + * @var FeatureFlags |
|
15 | + */ |
|
16 | + private $feature_flags; |
|
17 | + |
|
18 | + |
|
19 | + /** |
|
20 | + * @param FeatureFlags $feature_flags |
|
21 | + * @param JsonDataNodeValidator $validator |
|
22 | + */ |
|
23 | + public function __construct(FeatureFlags $feature_flags, JsonDataNodeValidator $validator) |
|
24 | + { |
|
25 | + $this->feature_flags = $feature_flags; |
|
26 | + parent::__construct($validator); |
|
27 | + $this->setNodeName(SitePermissions::NODE_NAME); |
|
28 | + } |
|
29 | + |
|
30 | + |
|
31 | + /** |
|
32 | + * @inheritDoc |
|
33 | + */ |
|
34 | + public function initialize() |
|
35 | + { |
|
36 | + $this->setDataArray($this->feature_flags->getAllowedFeatures()); |
|
37 | + } |
|
38 | 38 | } |
@@ -18,38 +18,38 @@ |
||
18 | 18 | */ |
19 | 19 | class Api extends JsonDataNode |
20 | 20 | { |
21 | - const NODE_NAME = 'api'; |
|
22 | - |
|
23 | - |
|
24 | - /** |
|
25 | - * @param JsonDataNodeValidator $validator |
|
26 | - */ |
|
27 | - public function __construct(JsonDataNodeValidator $validator) |
|
28 | - { |
|
29 | - parent::__construct($validator); |
|
30 | - $this->setNodeName(Api::NODE_NAME); |
|
31 | - } |
|
32 | - |
|
33 | - |
|
34 | - /** |
|
35 | - * @throws DomainException |
|
36 | - * @since $VID:$ |
|
37 | - */ |
|
38 | - public function initialize() |
|
39 | - { |
|
40 | - $this->addData('restApiNonce', wp_create_nonce('wp_rest')); |
|
41 | - $this->addData('restApiBaseUrl', rest_url()); |
|
42 | - $this->addData('restApiRouteUrl', rest_url('ee/v4.8.36/')); |
|
43 | - $this->addData('restApiCollectionEndpoints', EED_Core_Rest_Api::getCollectionRoutesIndexedByModelName()); |
|
44 | - $this->addData('restApiPrimaryKeys', EED_Core_Rest_Api::getPrimaryKeyNamesIndexedByModelName()); |
|
45 | - |
|
46 | - // route can be something like 'graphql' |
|
47 | - $route = trim(Router::$route, '/'); |
|
48 | - // make sure we are dealing with sane folks |
|
49 | - $has_pretty_permalinks = (bool) get_option('permalink_structure'); |
|
50 | - // if pretty permalinks, use '/graphql' otherwise '?graphql=1' |
|
51 | - $graphqlEndpoint = $has_pretty_permalinks ? site_url($route) : add_query_arg($route, 1, site_url()); |
|
52 | - $this->addData('graphqlEndpoint', esc_url($graphqlEndpoint)); |
|
53 | - $this->setInitialized(true); |
|
54 | - } |
|
21 | + const NODE_NAME = 'api'; |
|
22 | + |
|
23 | + |
|
24 | + /** |
|
25 | + * @param JsonDataNodeValidator $validator |
|
26 | + */ |
|
27 | + public function __construct(JsonDataNodeValidator $validator) |
|
28 | + { |
|
29 | + parent::__construct($validator); |
|
30 | + $this->setNodeName(Api::NODE_NAME); |
|
31 | + } |
|
32 | + |
|
33 | + |
|
34 | + /** |
|
35 | + * @throws DomainException |
|
36 | + * @since $VID:$ |
|
37 | + */ |
|
38 | + public function initialize() |
|
39 | + { |
|
40 | + $this->addData('restApiNonce', wp_create_nonce('wp_rest')); |
|
41 | + $this->addData('restApiBaseUrl', rest_url()); |
|
42 | + $this->addData('restApiRouteUrl', rest_url('ee/v4.8.36/')); |
|
43 | + $this->addData('restApiCollectionEndpoints', EED_Core_Rest_Api::getCollectionRoutesIndexedByModelName()); |
|
44 | + $this->addData('restApiPrimaryKeys', EED_Core_Rest_Api::getPrimaryKeyNamesIndexedByModelName()); |
|
45 | + |
|
46 | + // route can be something like 'graphql' |
|
47 | + $route = trim(Router::$route, '/'); |
|
48 | + // make sure we are dealing with sane folks |
|
49 | + $has_pretty_permalinks = (bool) get_option('permalink_structure'); |
|
50 | + // if pretty permalinks, use '/graphql' otherwise '?graphql=1' |
|
51 | + $graphqlEndpoint = $has_pretty_permalinks ? site_url($route) : add_query_arg($route, 1, site_url()); |
|
52 | + $this->addData('graphqlEndpoint', esc_url($graphqlEndpoint)); |
|
53 | + $this->setInitialized(true); |
|
54 | + } |
|
55 | 55 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function initialize($asset_namespace = Domain::ASSET_NAMESPACE) |
88 | 88 | { |
89 | - if (! $this->initialized) { |
|
89 | + if ( ! $this->initialized) { |
|
90 | 90 | $this->plugin_basename = plugin_basename($this->pluginFile()); |
91 | 91 | $this->plugin_path = plugin_dir_path($this->pluginFile()); |
92 | 92 | $this->plugin_url = plugin_dir_url($this->pluginFile()); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function setAssetNamespace($asset_namespace = Domain::ASSET_NAMESPACE) |
105 | 105 | { |
106 | - if (! $this->asset_namespace) { |
|
106 | + if ( ! $this->asset_namespace) { |
|
107 | 107 | $this->asset_namespace = sanitize_key( |
108 | 108 | // convert directory separators to dashes and remove file extension |
109 | 109 | str_replace(['/', '.php'], ['-', ''], $asset_namespace) |
@@ -119,8 +119,8 @@ discard block |
||
119 | 119 | private function setDistributionAssetsPath() |
120 | 120 | { |
121 | 121 | $assets_folder_paths = [ |
122 | - $this->plugin_path . DomainBase::ASSETS_FOLDER, |
|
123 | - $this->plugin_path . 'src/' . DomainBase::ASSETS_FOLDER, |
|
122 | + $this->plugin_path.DomainBase::ASSETS_FOLDER, |
|
123 | + $this->plugin_path.'src/'.DomainBase::ASSETS_FOLDER, |
|
124 | 124 | ]; |
125 | 125 | foreach ($assets_folder_paths as $assets_folder_path) { |
126 | 126 | if (is_readable($assets_folder_path)) { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | public function pluginPath($additional_path = '') |
158 | 158 | { |
159 | 159 | return is_string($additional_path) && $additional_path !== '' |
160 | - ? $this->plugin_path . $additional_path |
|
160 | + ? $this->plugin_path.$additional_path |
|
161 | 161 | : $this->plugin_path; |
162 | 162 | } |
163 | 163 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | public function pluginUrl($additional_path = '') |
170 | 170 | { |
171 | 171 | return is_string($additional_path) && $additional_path !== '' |
172 | - ? $this->plugin_url . $additional_path |
|
172 | + ? $this->plugin_url.$additional_path |
|
173 | 173 | : $this->plugin_url; |
174 | 174 | } |
175 | 175 | |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | public function distributionAssetsPath($additional_path = '') |
209 | 209 | { |
210 | 210 | return is_string($additional_path) && $additional_path !== '' |
211 | - ? $this->assets_path . $additional_path |
|
211 | + ? $this->assets_path.$additional_path |
|
212 | 212 | : $this->assets_path; |
213 | 213 | } |
214 | 214 | |
@@ -220,8 +220,8 @@ discard block |
||
220 | 220 | public function distributionAssetsUrl($additional_path = '') |
221 | 221 | { |
222 | 222 | return is_string($additional_path) && $additional_path !== '' |
223 | - ? $this->plugin_url . DomainBase::ASSETS_FOLDER . $additional_path |
|
224 | - : $this->plugin_url . DomainBase::ASSETS_FOLDER; |
|
223 | + ? $this->plugin_url.DomainBase::ASSETS_FOLDER.$additional_path |
|
224 | + : $this->plugin_url.DomainBase::ASSETS_FOLDER; |
|
225 | 225 | } |
226 | 226 | |
227 | 227 |
@@ -16,232 +16,232 @@ |
||
16 | 16 | */ |
17 | 17 | abstract class DomainBase implements DomainInterface |
18 | 18 | { |
19 | - const ASSETS_FOLDER = 'assets/'; |
|
20 | - |
|
21 | - /** |
|
22 | - * Equivalent to `__FILE__` for main plugin file. |
|
23 | - * |
|
24 | - * @var FilePath |
|
25 | - */ |
|
26 | - private $plugin_file; |
|
27 | - |
|
28 | - /** |
|
29 | - * String indicating version for plugin |
|
30 | - * |
|
31 | - * @var string |
|
32 | - */ |
|
33 | - private $version; |
|
34 | - |
|
35 | - /** |
|
36 | - * @var string $plugin_basename |
|
37 | - */ |
|
38 | - private $plugin_basename; |
|
39 | - |
|
40 | - /** |
|
41 | - * @var string $plugin_path |
|
42 | - */ |
|
43 | - private $plugin_path; |
|
44 | - |
|
45 | - /** |
|
46 | - * @var string $plugin_url |
|
47 | - */ |
|
48 | - private $plugin_url; |
|
49 | - |
|
50 | - /** |
|
51 | - * @var string $asset_namespace |
|
52 | - */ |
|
53 | - private $asset_namespace; |
|
54 | - |
|
55 | - /** |
|
56 | - * @var string $assets_path |
|
57 | - */ |
|
58 | - private $assets_path; |
|
59 | - |
|
60 | - /** |
|
61 | - * @var bool |
|
62 | - */ |
|
63 | - protected $initialized = false; |
|
64 | - |
|
65 | - |
|
66 | - /** |
|
67 | - * Initializes internal properties. |
|
68 | - * |
|
69 | - * @param FilePath $plugin_file |
|
70 | - * @param Version $version |
|
71 | - * @param string $asset_namespace |
|
72 | - */ |
|
73 | - public function __construct( |
|
74 | - FilePath $plugin_file, |
|
75 | - Version $version, |
|
76 | - $asset_namespace = Domain::ASSET_NAMESPACE |
|
77 | - ) { |
|
78 | - $asset_namespace = (string) $asset_namespace; |
|
79 | - $this->plugin_file = $plugin_file; |
|
80 | - $this->version = $version; |
|
81 | - $this->initialize($asset_namespace); |
|
82 | - } |
|
83 | - |
|
84 | - |
|
85 | - /** |
|
86 | - * @param string $asset_namespace |
|
87 | - * @return void |
|
88 | - * @since $VID:$ |
|
89 | - */ |
|
90 | - public function initialize($asset_namespace = Domain::ASSET_NAMESPACE) |
|
91 | - { |
|
92 | - if (! $this->initialized) { |
|
93 | - $this->plugin_basename = plugin_basename($this->pluginFile()); |
|
94 | - $this->plugin_path = plugin_dir_path($this->pluginFile()); |
|
95 | - $this->plugin_url = plugin_dir_url($this->pluginFile()); |
|
96 | - $this->setAssetNamespace($asset_namespace); |
|
97 | - $this->setDistributionAssetsPath(); |
|
98 | - $this->initialized = true; |
|
99 | - } |
|
100 | - } |
|
101 | - |
|
102 | - |
|
103 | - /** |
|
104 | - * @param string $asset_namespace |
|
105 | - * @return void |
|
106 | - */ |
|
107 | - public function setAssetNamespace($asset_namespace = Domain::ASSET_NAMESPACE) |
|
108 | - { |
|
109 | - if (! $this->asset_namespace) { |
|
110 | - $this->asset_namespace = sanitize_key( |
|
111 | - // convert directory separators to dashes and remove file extension |
|
112 | - str_replace(['/', '.php'], ['-', ''], $asset_namespace) |
|
113 | - ); |
|
114 | - } |
|
115 | - } |
|
116 | - |
|
117 | - |
|
118 | - /** |
|
119 | - * @throws DomainException |
|
120 | - * @since $VID:$ |
|
121 | - */ |
|
122 | - private function setDistributionAssetsPath() |
|
123 | - { |
|
124 | - $assets_folder_paths = [ |
|
125 | - $this->plugin_path . DomainBase::ASSETS_FOLDER, |
|
126 | - $this->plugin_path . 'src/' . DomainBase::ASSETS_FOLDER, |
|
127 | - ]; |
|
128 | - foreach ($assets_folder_paths as $assets_folder_path) { |
|
129 | - if (is_readable($assets_folder_path)) { |
|
130 | - $this->assets_path = trailingslashit($assets_folder_path); |
|
131 | - // once we find a valid path, just break out of loop |
|
132 | - break; |
|
133 | - } |
|
134 | - } |
|
135 | - } |
|
136 | - |
|
137 | - |
|
138 | - /** |
|
139 | - * @return string |
|
140 | - */ |
|
141 | - public function pluginFile() |
|
142 | - { |
|
143 | - return (string) $this->plugin_file; |
|
144 | - } |
|
145 | - |
|
146 | - |
|
147 | - /** |
|
148 | - * @return FilePath |
|
149 | - */ |
|
150 | - public function pluginFileObject() |
|
151 | - { |
|
152 | - return $this->plugin_file; |
|
153 | - } |
|
154 | - |
|
155 | - |
|
156 | - /** |
|
157 | - * @return string |
|
158 | - */ |
|
159 | - public function pluginBasename() |
|
160 | - { |
|
161 | - return $this->plugin_basename; |
|
162 | - } |
|
163 | - |
|
164 | - |
|
165 | - /** |
|
166 | - * @param string $additional_path |
|
167 | - * @return string |
|
168 | - */ |
|
169 | - public function pluginPath($additional_path = '') |
|
170 | - { |
|
171 | - return is_string($additional_path) && $additional_path !== '' |
|
172 | - ? $this->plugin_path . $additional_path |
|
173 | - : $this->plugin_path; |
|
174 | - } |
|
175 | - |
|
176 | - |
|
177 | - /** |
|
178 | - * @param string $additional_path |
|
179 | - * @return string |
|
180 | - */ |
|
181 | - public function pluginUrl($additional_path = '') |
|
182 | - { |
|
183 | - return is_string($additional_path) && $additional_path !== '' |
|
184 | - ? $this->plugin_url . $additional_path |
|
185 | - : $this->plugin_url; |
|
186 | - } |
|
187 | - |
|
188 | - |
|
189 | - /** |
|
190 | - * @return string |
|
191 | - */ |
|
192 | - public function version() |
|
193 | - { |
|
194 | - return (string) $this->version; |
|
195 | - } |
|
196 | - |
|
197 | - |
|
198 | - /** |
|
199 | - * @return Version |
|
200 | - */ |
|
201 | - public function versionValueObject() |
|
202 | - { |
|
203 | - return $this->version; |
|
204 | - } |
|
205 | - |
|
206 | - |
|
207 | - /** |
|
208 | - * @return string |
|
209 | - */ |
|
210 | - public function distributionAssetsFolder() |
|
211 | - { |
|
212 | - return DomainBase::ASSETS_FOLDER; |
|
213 | - } |
|
214 | - |
|
215 | - |
|
216 | - /** |
|
217 | - * @param string $additional_path |
|
218 | - * @return string |
|
219 | - */ |
|
220 | - public function distributionAssetsPath($additional_path = '') |
|
221 | - { |
|
222 | - return is_string($additional_path) && $additional_path !== '' |
|
223 | - ? $this->assets_path . $additional_path |
|
224 | - : $this->assets_path; |
|
225 | - } |
|
226 | - |
|
227 | - |
|
228 | - /** |
|
229 | - * @param string $additional_path |
|
230 | - * @return string |
|
231 | - */ |
|
232 | - public function distributionAssetsUrl($additional_path = '') |
|
233 | - { |
|
234 | - return is_string($additional_path) && $additional_path !== '' |
|
235 | - ? $this->plugin_url . DomainBase::ASSETS_FOLDER . $additional_path |
|
236 | - : $this->plugin_url . DomainBase::ASSETS_FOLDER; |
|
237 | - } |
|
238 | - |
|
239 | - |
|
240 | - /** |
|
241 | - * @return string |
|
242 | - */ |
|
243 | - public function assetNamespace() |
|
244 | - { |
|
245 | - return $this->asset_namespace; |
|
246 | - } |
|
19 | + const ASSETS_FOLDER = 'assets/'; |
|
20 | + |
|
21 | + /** |
|
22 | + * Equivalent to `__FILE__` for main plugin file. |
|
23 | + * |
|
24 | + * @var FilePath |
|
25 | + */ |
|
26 | + private $plugin_file; |
|
27 | + |
|
28 | + /** |
|
29 | + * String indicating version for plugin |
|
30 | + * |
|
31 | + * @var string |
|
32 | + */ |
|
33 | + private $version; |
|
34 | + |
|
35 | + /** |
|
36 | + * @var string $plugin_basename |
|
37 | + */ |
|
38 | + private $plugin_basename; |
|
39 | + |
|
40 | + /** |
|
41 | + * @var string $plugin_path |
|
42 | + */ |
|
43 | + private $plugin_path; |
|
44 | + |
|
45 | + /** |
|
46 | + * @var string $plugin_url |
|
47 | + */ |
|
48 | + private $plugin_url; |
|
49 | + |
|
50 | + /** |
|
51 | + * @var string $asset_namespace |
|
52 | + */ |
|
53 | + private $asset_namespace; |
|
54 | + |
|
55 | + /** |
|
56 | + * @var string $assets_path |
|
57 | + */ |
|
58 | + private $assets_path; |
|
59 | + |
|
60 | + /** |
|
61 | + * @var bool |
|
62 | + */ |
|
63 | + protected $initialized = false; |
|
64 | + |
|
65 | + |
|
66 | + /** |
|
67 | + * Initializes internal properties. |
|
68 | + * |
|
69 | + * @param FilePath $plugin_file |
|
70 | + * @param Version $version |
|
71 | + * @param string $asset_namespace |
|
72 | + */ |
|
73 | + public function __construct( |
|
74 | + FilePath $plugin_file, |
|
75 | + Version $version, |
|
76 | + $asset_namespace = Domain::ASSET_NAMESPACE |
|
77 | + ) { |
|
78 | + $asset_namespace = (string) $asset_namespace; |
|
79 | + $this->plugin_file = $plugin_file; |
|
80 | + $this->version = $version; |
|
81 | + $this->initialize($asset_namespace); |
|
82 | + } |
|
83 | + |
|
84 | + |
|
85 | + /** |
|
86 | + * @param string $asset_namespace |
|
87 | + * @return void |
|
88 | + * @since $VID:$ |
|
89 | + */ |
|
90 | + public function initialize($asset_namespace = Domain::ASSET_NAMESPACE) |
|
91 | + { |
|
92 | + if (! $this->initialized) { |
|
93 | + $this->plugin_basename = plugin_basename($this->pluginFile()); |
|
94 | + $this->plugin_path = plugin_dir_path($this->pluginFile()); |
|
95 | + $this->plugin_url = plugin_dir_url($this->pluginFile()); |
|
96 | + $this->setAssetNamespace($asset_namespace); |
|
97 | + $this->setDistributionAssetsPath(); |
|
98 | + $this->initialized = true; |
|
99 | + } |
|
100 | + } |
|
101 | + |
|
102 | + |
|
103 | + /** |
|
104 | + * @param string $asset_namespace |
|
105 | + * @return void |
|
106 | + */ |
|
107 | + public function setAssetNamespace($asset_namespace = Domain::ASSET_NAMESPACE) |
|
108 | + { |
|
109 | + if (! $this->asset_namespace) { |
|
110 | + $this->asset_namespace = sanitize_key( |
|
111 | + // convert directory separators to dashes and remove file extension |
|
112 | + str_replace(['/', '.php'], ['-', ''], $asset_namespace) |
|
113 | + ); |
|
114 | + } |
|
115 | + } |
|
116 | + |
|
117 | + |
|
118 | + /** |
|
119 | + * @throws DomainException |
|
120 | + * @since $VID:$ |
|
121 | + */ |
|
122 | + private function setDistributionAssetsPath() |
|
123 | + { |
|
124 | + $assets_folder_paths = [ |
|
125 | + $this->plugin_path . DomainBase::ASSETS_FOLDER, |
|
126 | + $this->plugin_path . 'src/' . DomainBase::ASSETS_FOLDER, |
|
127 | + ]; |
|
128 | + foreach ($assets_folder_paths as $assets_folder_path) { |
|
129 | + if (is_readable($assets_folder_path)) { |
|
130 | + $this->assets_path = trailingslashit($assets_folder_path); |
|
131 | + // once we find a valid path, just break out of loop |
|
132 | + break; |
|
133 | + } |
|
134 | + } |
|
135 | + } |
|
136 | + |
|
137 | + |
|
138 | + /** |
|
139 | + * @return string |
|
140 | + */ |
|
141 | + public function pluginFile() |
|
142 | + { |
|
143 | + return (string) $this->plugin_file; |
|
144 | + } |
|
145 | + |
|
146 | + |
|
147 | + /** |
|
148 | + * @return FilePath |
|
149 | + */ |
|
150 | + public function pluginFileObject() |
|
151 | + { |
|
152 | + return $this->plugin_file; |
|
153 | + } |
|
154 | + |
|
155 | + |
|
156 | + /** |
|
157 | + * @return string |
|
158 | + */ |
|
159 | + public function pluginBasename() |
|
160 | + { |
|
161 | + return $this->plugin_basename; |
|
162 | + } |
|
163 | + |
|
164 | + |
|
165 | + /** |
|
166 | + * @param string $additional_path |
|
167 | + * @return string |
|
168 | + */ |
|
169 | + public function pluginPath($additional_path = '') |
|
170 | + { |
|
171 | + return is_string($additional_path) && $additional_path !== '' |
|
172 | + ? $this->plugin_path . $additional_path |
|
173 | + : $this->plugin_path; |
|
174 | + } |
|
175 | + |
|
176 | + |
|
177 | + /** |
|
178 | + * @param string $additional_path |
|
179 | + * @return string |
|
180 | + */ |
|
181 | + public function pluginUrl($additional_path = '') |
|
182 | + { |
|
183 | + return is_string($additional_path) && $additional_path !== '' |
|
184 | + ? $this->plugin_url . $additional_path |
|
185 | + : $this->plugin_url; |
|
186 | + } |
|
187 | + |
|
188 | + |
|
189 | + /** |
|
190 | + * @return string |
|
191 | + */ |
|
192 | + public function version() |
|
193 | + { |
|
194 | + return (string) $this->version; |
|
195 | + } |
|
196 | + |
|
197 | + |
|
198 | + /** |
|
199 | + * @return Version |
|
200 | + */ |
|
201 | + public function versionValueObject() |
|
202 | + { |
|
203 | + return $this->version; |
|
204 | + } |
|
205 | + |
|
206 | + |
|
207 | + /** |
|
208 | + * @return string |
|
209 | + */ |
|
210 | + public function distributionAssetsFolder() |
|
211 | + { |
|
212 | + return DomainBase::ASSETS_FOLDER; |
|
213 | + } |
|
214 | + |
|
215 | + |
|
216 | + /** |
|
217 | + * @param string $additional_path |
|
218 | + * @return string |
|
219 | + */ |
|
220 | + public function distributionAssetsPath($additional_path = '') |
|
221 | + { |
|
222 | + return is_string($additional_path) && $additional_path !== '' |
|
223 | + ? $this->assets_path . $additional_path |
|
224 | + : $this->assets_path; |
|
225 | + } |
|
226 | + |
|
227 | + |
|
228 | + /** |
|
229 | + * @param string $additional_path |
|
230 | + * @return string |
|
231 | + */ |
|
232 | + public function distributionAssetsUrl($additional_path = '') |
|
233 | + { |
|
234 | + return is_string($additional_path) && $additional_path !== '' |
|
235 | + ? $this->plugin_url . DomainBase::ASSETS_FOLDER . $additional_path |
|
236 | + : $this->plugin_url . DomainBase::ASSETS_FOLDER; |
|
237 | + } |
|
238 | + |
|
239 | + |
|
240 | + /** |
|
241 | + * @return string |
|
242 | + */ |
|
243 | + public function assetNamespace() |
|
244 | + { |
|
245 | + return $this->asset_namespace; |
|
246 | + } |
|
247 | 247 | } |