Skip to content

Commit

Permalink
Merge pull request #38 from tattersoftware/devendor
Browse files Browse the repository at this point in the history
Remove Vendor
  • Loading branch information
MGatner authored Dec 10, 2021
2 parents 1bd1348 + bd8f648 commit d0099ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 134 deletions.
8 changes: 4 additions & 4 deletions src/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ public static function config(): AssetsConfig
self::$config = config(AssetsConfig::class);

// Standardize formats
self::$config->uri = rtrim(self::$config->uri, '/') . '/';
self::$config->directory = rtrim(self::$config->directory, '/') . '/';
self::$config->vendor = rtrim(self::$config->vendor, '/') . '/';
self::$config->uri = rtrim(self::$config->uri, '/\\') . DIRECTORY_SEPARATOR;
self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
}

return self::$config;
Expand Down Expand Up @@ -90,7 +90,7 @@ public static function useConfig(?AssetsConfig $config)
public static function createFromPath(string $path): self
{
$config = self::config();
$path = ltrim($path, '/');
$path = ltrim($path, '/\\');
$file = new File($config->directory . $path, true);

// Build the URI
Expand Down
46 changes: 0 additions & 46 deletions src/VendorBundle.php

This file was deleted.

43 changes: 0 additions & 43 deletions src/VendorPublisher.php

This file was deleted.

41 changes: 0 additions & 41 deletions tests/VendorTest.php

This file was deleted.

0 comments on commit d0099ce

Please sign in to comment.