Skip to content

Commit

Permalink
Merge pull request #1 from ARCANEDEV/feature-1
Browse files Browse the repository at this point in the history
Updating the package
  • Loading branch information
arcanedev-maroc committed Apr 17, 2016
2 parents 87413d5 + b40cae8 commit 4cf1e8c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
@@ -1,5 +1,6 @@
/_docs export-ignore
/tests export-ignore
/examples export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.scrutinizer.yml export-ignore
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 ARCANEDEV <arcanedev.maroc@gmail.com> - LaravelMarkdown
Copyright (c) 2016 | ARCANEDEV <arcanedev.maroc@gmail.com> - LaravelMarkdown

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -17,7 +17,7 @@ A small and *easy-to-use* Markdown parser package for Laravel and it comes with

> This package is based on [Parsedown](https://github.com/erusev/parsedown) package by [@erusev](https://github.com/erusev).
Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelMarkdown/releases), [license](https://github.com/ARCANEDEV/LaravelMarkdown/blob/master/LICENSE.md), and [contribution guidelines](https://github.com/ARCANEDEV/LaravelMarkdown/blob/master/CONTRIBUTING.md).
Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelMarkdown/releases), [license](LICENSE.md), and [contribution guidelines](CONTRIBUTING.md).

### Features

Expand Down
12 changes: 8 additions & 4 deletions src/LaravelMarkdownServiceProvider.php
Expand Up @@ -29,6 +29,13 @@ class LaravelMarkdownServiceProvider extends PackageServiceProvider
*/
protected $package = 'markdown';

/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;

/* ------------------------------------------------------------------------------------------------
| Getters & Setters
| ------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -69,10 +76,7 @@ public function register()
*/
public function boot()
{
$this->publishes([
$this->getConfigFile() => config_path('markdown.php'),
]);

$this->publishConfig();
$this->registerBladeDirectives();
}

Expand Down
11 changes: 11 additions & 0 deletions tests/TestCase.php
Expand Up @@ -14,6 +14,17 @@ abstract class TestCase extends BaseTestCase
| Main Functions
| ------------------------------------------------------------------------------------------------
*/
public function setUp()
{
parent::setUp();

$this->app->loadDeferredProviders();
}

/* ------------------------------------------------------------------------------------------------
| Package Functions
| ------------------------------------------------------------------------------------------------
*/
/**
* Get package providers.
*
Expand Down

0 comments on commit 4cf1e8c

Please sign in to comment.