PluginProbe
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 4.7.2
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v4.7.2
4.7.2 4.7.1 4.7.0 4.6.6 4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.1 4.5.0 4.4.2 4.4.1 4.4.0 4.3.3 4.3.2 4.3.1 4.3.0 4.2.3 4.2.2 4.2.1 1.0.3 1.0.4 1.0.5 All 281 releases
surecart / core / app-core / src / Assets / AssetsServiceProvider.php
AssetsServiceProvider.php
45 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package SureCartAppCore
4 * @author SureCart <support@surecart.com>
5 * @copyright SureCart
6 * @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0
7 * @link https://surecart.com
8 */
9
10 namespace SureCartAppCore\Assets;
11
12 use SureCartCore\ServiceProviders\ServiceProviderInterface;
13
14 /**
15 * Provide assets dependencies.
16 *
17 * @codeCoverageIgnore
18 */
19 class AssetsServiceProvider implements ServiceProviderInterface {
20 /**
21 * {@inheritDoc}
22 */
23 public function register( $container ) {
24 $container['surecart_app_core.assets.manifest'] = function( $c ) {
25 return new Manifest( $c[ SURECART_CONFIG_KEY ]['app_core']['path'] );
26 };
27
28 $container['surecart_app_core.assets.assets'] = function( $container ) {
29 return new Assets(
30 $container[ SURECART_CONFIG_KEY ]['app_core']['path'],
31 $container[ SURECART_CONFIG_KEY ]['app_core']['url'],
32 $container['surecart_app_core.config.config'],
33 $container['surecart_app_core.assets.manifest']
34 );
35 };
36 }
37
38 /**
39 * {@inheritDoc}
40 */
41 public function bootstrap( $container ) {
42 // Nothing to bootstrap.
43 }
44 }
45