Skip to content

Commit

Permalink
[skip ci] update for 2.4.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheron committed Apr 24, 2022
1 parent 51c2943 commit e8bd077
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 33 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Nothing

## [2.4.12] 2022-04-24
## [2.4.12] 2022-04-25
### Added
- `count` method to `AbstractRepository`
- app methods to Logger: `appLog`, `appInfo`, `appError`...
Expand All @@ -21,6 +21,9 @@ Nothing
- `data-target` bug in `MultiResourceCrudController`
- `UCookie` pb with transformers

### Deleted
- `diSemantic` and `diBootstrap` in `Framework` => use `Ajax\php\ubiquity\JsUtils::diSemantic(...)` instead.

## [2.4.11] 2022-02-22
### Updated (breaking change)
- AuthControllers refactoring
Expand Down
34 changes: 2 additions & 32 deletions src/Ubiquity/core/Framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Ubiquity\core
* This class is part of Ubiquity
* @author jc
* @version 1.0.1
* @version 1.0.2
*
*/
namespace Ubiquity\core;
Expand All @@ -21,7 +21,7 @@
use Ubiquity\cache\CacheManager;

class Framework {
public const version = '2.4.11';
public const version = '2.4.12';

public static function getVersion() {
return self::version;
Expand Down Expand Up @@ -82,35 +82,5 @@ public static function getCacheSystem() {
public static function getAnnotationsEngine() {
return \get_class ( CacheManager::getAnnotationsEngineInstance () );
}

/**
* Returns an instance of JsUtils initialized with Semantic (for di injection)
*
* @param \Ubiquity\controllers\Controller $controller
* @param array $options
* @return \Ajax\php\ubiquity\JsUtils
* @deprecated use Ajax\php\ubiquity\JsUtils::diSemantic(...) instead.
*/
public static function diSemantic($controller, $options = [ 'defer' => true,'gc' => true ]) {
$jquery = new \Ajax\php\ubiquity\JsUtils ( $options, $controller );
$jquery->semantic ( new \Ajax\Semantic () );
$jquery->setAjaxLoader ( "<div class=\"ui active centered inline text loader\">Loading</div>" );
return $jquery;
}

/**
* Returns an instance of JsUtils initialized with Bootstrap (for di injection)
*
* @param \Ubiquity\controllers\Controller $controller
* @param array $options
* @return \Ajax\php\ubiquity\JsUtils
* @deprecated use Ajax\php\ubiquity\JsUtils::diBootstrap(...) instead.
*/
public static function diBootstrap($controller, $options = [ 'defer' => true,'gc' => true ]) {
$jquery = new \Ajax\php\ubiquity\JsUtils ( $options, $controller );
$jquery->bootstrap ( new \Ajax\Bootstrap () );
$jquery->setAjaxLoader ( "<div class=\"ui active centered inline text loader\">Loading</div>" );
return $jquery;
}
}

0 comments on commit e8bd077

Please sign in to comment.